In an assignment I have been asked to accept a user input for student name and student course using JOptionPane.showInputDialog("enter name");
JOptionPane.showInputDialog("enter course");
I need 24 names and courses....My question is can I store both name and course in the same array? If so how do I do it?

Alan.