View Single Post
Old May 25th, 2006, 10:36 AM   #6
NSchnarr
Newbie
 
Join Date: May 2006
Posts: 28
Rep Power: 0 NSchnarr is on a distinguished road
Quote:
So is there another way I can find individual letters within a string?
You could always use the substring method.

String someSentence = "this is a sentence";
String letter = someSentence.subString(0,1);

So at this point letter equals "t", there are however much better ways of doing this. But it would be easy enough to create an array of type string. use a while loop, and assign each letter of your sentence to the string array.
NSchnarr is offline   Reply With Quote