Thread
:
Java programming help Plz
View Single Post
Reply
Posted 2010-02-26, 06:32 AM in reply to
Lenny
's post starting
"I've had a look at the API, and I can't..."
Another method if you want it:
Suppose you have String str. Then you could say:
Character.isUpperCase(str.charAt(0));
This returns a boolean value.
So you might have something like
Code:
if(Character.isUpperCase(str.charAt(0))) { // do something } else { // do something else }
.
Here are a couple of links that might help:
http://java.sun.com/j2se/1.4.2/docs/...Character.html
http://java.sun.com/j2se/1.4.2/docs/...ng/String.html
Last edited by Demosthenes; 2010-02-26 at
06:38 AM
.
Profile
PM
WWW
Search
Demosthenes