Update Assignment4.java

This assg runs completely  but can you check it and compress it where possible, and see if it runs with your own test code(as in make your own similar data file or something), anyways I was just trying to make the program work I wasn't concerned with efficiency or consistent output and error catching in the actual data file.
And now I really have to get back to other HW.
Merge pull request #3 from otkac001/patch-3

Looks good.