simple java text parser

old parser file with sample input