In Java, how do you parse through a single word string?
- by Fraz
I'm trying to parse though a string made up of a single word.
How would you go about assigning the last letter of the word to a variable?
I was thinking of using the Scanner class to parse the word and make each letter an element in an array but it seems Scanner.next() only goes through whole words and not the individual letters.
Any help?