java data munge program working