tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Crowther" <Peter.Crowt...@melandra.com>
Subject RE: off topic - how do i convert an int to char
Date Tue, 07 Dec 2004 16:00:45 GMT
> From: Nilesh Bhattad [mailto:nilesh@outlinesys.com] 
> Subject: Re: off topic - how do i convert an int to char

Oh, come on.

String letterAt(int i) {
   return "abcdefghijklmnopqrstuvwxyz".substring(i, i + 1);
}

Fast, portable, simple.

		- Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message