class Student { int[] Scores= new int[4]; String Name; Student() { this.Name= JOptionPane.showInputDialog(null, "Input the student's name"); for (int i= 0; i< 4; i++) this.Scores[i]= (int) (Math.random()*100); } public void ScoreList() { System.out.println( "--------------------------------------------------------------------------------------------" + "\nInformation for Student:" +Name+ "\nTest 1 Score:" +Scores[0]+ "\nTest 2 Score:" +Scores[1]+ "\nTest 3 Score:" +Scores[2]+ "\nTest 4 Score:" +Scores[3]+ "\n---------------------------------------------------------------------------------------------"); } //Get score (take score #, outputs value) }