I need to make a calculator for students grades using java. The user types in the name and score for a student on a single line separated by commas. It needs to take 10 students details. But I can not work out how to split the user input string using commas, and fill it into my array. Any help would be appreciated. Thanks
public static void main (String[] args){
Scanner scan = new Scanner(System.in);
String[][] student = new String[10][];
for (int index=1; index <=10; index++){
String userinput = scan.nextLine();