Reads in data and plots in Java