Student Needs Help
i have tried to do it several times and im having a problem with this code....
import javax.swing.*;
import java.util.Scanner;
publicclass Exercise6_19{
publicstaticvoid main (String[] args)
{
// Entering the number of student
String number ofStudentsString = JOptionPane.showInputDialog( null,"Enter a number of Student[b] : "[/b]);
int numberOfStudent = Integer.parseInt(numberOfStudentString);
// int numberOfScore = 1;
String[] name =new String[numberOfStudent];
double[] score =newdouble[numberOfStudent];
// Entering the name of the student and there score
for(int i=0; i < name.lenght; i++)
name[i] = JOptionPane.showInputDialog( null,"Enter the name of student: ");
{
for(int j=0; j < Score.length; j++)
{
String ScoreString = JOptionPane.showInputDialog( null,"Enter the score : ");
Score[j] = Integer.parseInt(ScoreString);
S.O.P(name[i]);
}
}
}
}
the bolded fonts is the error that im getting.... when i try to execute it....
if someone know a way to slove this issue

