If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

JAVA help

Hello,

I have to do this problem and I can't get it to work correctly. There is
something wrong with the display.
I have to have it display on the applet string "this number is greater" or
"numbers are equal" Here is the
source code.
If anyone can help, I would be extremely appreciative. I have been working
on this for almost a week and
I am ready to pull out my hair.

//Integer.parseInt() takes a string
value and returns an Integer.
nameText.setText(""); //resets the
text fields back to blank.
idText.setText("");
gradeText.setText("");
nameText.requestFocus();//Sets the
cursor to the name field
scount++;//adds one to the student
counter
}
}
}

/** addIdList method that adds the student ID's to the listText Text
Area
*/

//makes a new Integer for a sec with the bcount value, converts it to
a string, and then sets
//the text to it

bsText.setText(new Integer(bcount).toString());
}

/**Finds the High Score
*/

private void calc_hs()
{
String stuname = "";
int stuid = 0;
double stugrade = 0, bgrade = 0;
for (int i = 0;i < scount;i++)
{
//Compares to see if the current students grade is
greater then the last best grade, if it is
//records the name, id and grade for later use.