I am having a problem trying to write a method that can add values from a cvs file row by row. The problem is the csv file is structure in this way
1980 11 14 16 23 18 .....
1981 21 17 16 12 18 .....
1982 14 16 23 18 17 .....
1983 17 16 12 18 10 ......
I need to add the values after year and get an average for each year. My current knowledge of
java only tells me how to add the whole row. Eventually after I have finished writing my program I am suppose to be able to type in a year and the get the average values for that year.
How can I add the values in row ignoring the first row and looping through a very long csv file with values stretching from 1900 to 2013?