I am reading from a csv file formatted with a student name, date they are absent, and an integer value of 1. The file looks like this:
Jim,8/19/2016,1
Jim,8/20/2016,1
I am plotting this data on a piechart using JFreeChart, and I can set labels to show the sum of absences for each student or the percentage, but I want to store the sum and percentage as variables and use them later in my code. How do I do this? My next step would be seeing if Jim missed more than 25% of the days in the school year.