Revised grades program to record and display student's grades in JOptionPane