I am having trouble at finding a way to iterate through a string of alphabets until a digit is reached.
e.g. iterating through
//Using a scanner, I can use scanner.getNext() to get the first word. //There may be more than one word; there is no way to tell; the algorithm must figure it out. String iCanDo= "Seoul 235 253"; //One word. I can read this through scanner.getNext(); String canNotDo = "Anyong Haseyo 142.153 535353"; //2 words; I can't do this.
I suppose the main question is: How do I iterate through the string until a digit appears?
(...and if you are wondering, I am learning Korean. :) )