when ever you use sectionScan.next();
, it will read the next one ,
you could get the temp String like this:
String temp=sectionScan.next();
and you could do what ever you want to do with that temp
another solution is that to use split
method like this :
String []score=wholeLine.split(",");
so you have an array that splited by ,
so you can iterate trough that array like this:
for(String str:score){
//do what ever you want to do with str
}