File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Passing String to Character IS-A Methods
Joined: Apr 16, 2004
Jul 09, 2008 09:31:00
Is there are better way than this ?
aLetter = "A" ;
char  charArray = new char ;
charArray = aLetter.toCharArray() ;
boolean b = Character.isLetter(charArray) ;
Joined: Oct 14, 2005
Jul 09, 2008 09:45:00
Using the "charAt(int)" method of String would reduce the number of lines of code in that example.
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
subject: Passing String to Character IS-A Methods
how do you convert CHAR TO STRING
How to read the complete contents of a file in a String?!
different question relating to the recursion
Read operation failed from Socket.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013