I'm trying to multiply numbers from a text file using JAVA but have no idea how.
4
12 4
16 8
14 1
12 8
The first number on the first line represents how many people there are within the document (line 2 "12 4" being the first person "12 8" being the last.)
4 (number of employees)
32 (hours employees have worked) 8 (wage per hour)
38 6
38 6
16 7
I'm trying to find how Java can skip line 1, read line two and multiply the two numbers and then do the same for the other lines.
Please can anyone explain how I could do this?
Cheers!