How to check case?

Hi allI want check every character's case (either upper case or lowercase)in a string...how can i do this ..can any one tellthanks in advanceregardsrajesh
[190 byte] By [vrkrajeshrajua] at [2007-11-27 8:22:43]
# 1
Before giving an answer, can you explain what you are trying to do.
floundera at 2007-7-12 20:11:25 > top of Java-index,Java Essentials,Java Programming...
# 2
String.charAtString.toCharArrayCharacter.isLowerCaseCharacter.isUpperCase
jverda at 2007-7-12 20:11:25 > top of Java-index,Java Essentials,Java Programming...
# 3
Only answering because I am a man of the people and not an elitist gold star.Look at the Character class. It has methods for isLowerCase and isUpperCase. Then you can use it to examine the chars of your String.
cotton.ma at 2007-7-12 20:11:25 > top of Java-index,Java Essentials,Java Programming...
# 4
> Only answering because I am a man of the people and> not an elitist gold star.pfffffffffffffffffffffffttttttttttttttttttttttttttt!
floundera at 2007-7-12 20:11:25 > top of Java-index,Java Essentials,Java Programming...
# 5

The reason I didn't provide an initial answer is, I wondered if OP was just trying to handle mixed case input. In which case they could use toLowerCase (or toUpperCase) or perhaps equalsIgneorCase.

Now I think I will sit on a suitcase while drinking a case of beer.

Just in case you were wondering.

Message was edited by:

flounder

floundera at 2007-7-12 20:11:25 > top of Java-index,Java Essentials,Java Programming...
# 6

> The reason I didn't provide an initial answer is, I

> wondered if OP was just trying to handle mixed case

> input. In which case they could use toLowerCase (or

> toUpperCase) or perhaps equalsIgneorCase.

I think they could be volcanic in origin for all he cares.

> Now I think I will sit on a suitcase while drinking a

> case of beer.

>

MMmm beer.

cotton.ma at 2007-7-12 20:11:25 > top of Java-index,Java Essentials,Java Programming...