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

[2068 byte] By [shahboya] at [2007-11-26 19:53:21]
# 1

> ...

> the bolded fonts is the error that im getting....

> when i try to execute it....

>

> if someone know a way to slove this issue

What has this got to do with algorithms?

Next time try posting such questions in the "New To Java" forum:

http://forum.java.sun.com/forum.jspa?forumID=54

Instead of doingString number ofStudentsString = ...

tryString numberOfStudentsString = ...

prometheuzza at 2007-7-9 22:45:04 > top of Java-index,Other Topics,Algorithms...