Originally posted by fred rosenberger:
hmmm...
I think you need to slow down a little. What you wrote here will cause some problems.
in your 'getGrade' method, you print some stuff - that's fine. but... you also call a funtion - the getGrade() one. In other words, the method calls itself. So, the method gets called the first time, and then calls itself.
THAT call starts going, and calls itself again.
THAT call starts going, and calls itself again.
THAT call starts going, and calls itself again.
THAT call starts going, and calls itself again...
you see the problem?
public static float getGrade()
{
float grade;
if (score > 90)
grade = "A";
else if (score > 75)
grade = "B";
System.out.println("\nThis is a " + getGrade(highest) + " grade.");
ImageIcon[] imageArray = ImageIcon["C:\pixs\*.gif"];