What is the simplest way to get the last word of a string in Java ? You can assume no punctuation -LRB- just alphabetic characters and whitespace -RRB- .
What is the way to scan integer and string value in Java ?