This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I have a string from which I need to get the last token and the token changes everytime based on the string value.I am planning to use String tokenizer with hasMoreTokens method. Haven't come with the code as of it. Is there any other ways of getting the last token of a string variable. Please let me know.