Put the String into a Scanner class constructor and use the Scanner class's methods to test for and read the tokens.
Type: Posts; User: Norm
Put the String into a Scanner class constructor and use the Scanner class's methods to test for and read the tokens.
Another suggestion: read the String into a variable and then test its contents. The posted code doesn't save what was read so if you want to use it for something, it is gone.