tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Smith" <>
Subject Re: off topic - how do i convert an int to char
Date Tue, 07 Dec 2004 16:42:06 GMT
private static final char[] enc="abcdefghijklmnopqrstuvwxyz".toCharArray();

 for (int i=0;i<26;i++)

----- Original Message -----
From: "Nilesh Bhattad" <>
To: "Tomcat Users List" <>
Sent: Tuesday, December 07, 2004 10:34 AM
Subject: off topic - how do i convert an int to char

sorry for posting this offtopic qns here.. but would someone plz help me out
in converting an int value to char? my requirement is very simple. i'm
looping thro a list and for each counter i need to get 'a', 'b' and so

basically i need some conversion routine which will convert 0 to 'a', 1 to
'b', 2 to 'c' and so on.

again, i apologize for posting such a dumb qns.

- nilesh

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message