I'm trying to work with the data in nested loops and can't get it to work. I don't know how to use class and constructors. Any help is appreciated.

The code below prompts for all of the data, but then I don't know how to work with it. Add, divide, multiple, print to screen


public static void main(String[] args) {


Scanner input = new Scanner(System.in);



String[] names = new String[2];

for(int stnumber = 0; stnumber < 2; stnumber++){
System.out.println("Enter the first student " +(stnumber+1));
names[stnumber] = input.next();

String[] quiz = new String[2];

for(int qznumber = 0; qznumber < 2; qznumber++){
System.out.println("Enter quiz mark " +(qznumber+1));
quiz[qznumber] = input.next();
}
String[] midterm = new String[1];
for(int mtnumber = 0; mtnumber < 1; mtnumber++){
System.out.println("Enter midterm mark " +(mtnumber+1));
midterm[mtnumber] = input.next();
}

String[] myfinal = new String[1];
for(int fnnumber = 0; fnnumber < 1; fnnumber++){
System.out.println("Enter final mark " +(fnnumber+1));
myfinal[fnnumber] = input.next();
}

}







input.close();

System.out.println("The students marks are");
for(int stnumber = 0; stnumber < 2; stnumber++)

{
System.out.println(names[stnumber] );

}
}
}