qqp question1: What is the simplest way to get the last word of a string in Java? You can assume no punctuation (just alphabetic characters and whitespace). question2: What is the way to scan integer and string value in Java?