In Java, how do you parse through a single word string?
        Posted  
        
            by Fraz
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Fraz
        
        
        
        Published on 2010-05-04T22:13:29Z
        Indexed on 
            2010/05/04
            22:18 UTC
        
        
        Read the original article
        Hit count: 275
        
java
|string-manipulation
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?
© Stack Overflow or respective owner