In the class that parses the string you can pass the string through a constructor, or a method. I'll show you how to do it with a constructor.


//this is the class that does the parsing
public...