View Single Post
Old Nov 19th, 2006, 2:54 AM   #2
titaniumdecoy
Expert Programmer
 
titaniumdecoy's Avatar
 
Join Date: Nov 2005
Posts: 856
Rep Power: 3 titaniumdecoy is on a distinguished road
Send a message via AIM to titaniumdecoy
c.charAt(0) == '<'
I believe that is what you are looking for.

If you are searching a string for a particular character, you should use the indexOf methods of String instead.

Additionally, you can condense the code fragment you provided to one line:

return Character.isWhitespace(c.charAt(0));
Lastly, please use code tags when posting in the future.
titaniumdecoy is offline   Reply With Quote