Added java version of parse functions.

My function splits the string into tokens by the delimiter, I noticed that your C++ version leaves off the last term on the line, "tony". Mine includes tony at the end, not sure if this is intended on your part.