Look at the definition of the setProjectScore() method and at how you are calling it in post#3.
what is the second arg used for? What values are you using when you call the method?
Your code...
Type: Posts; User: Norm
Look at the definition of the setProjectScore() method and at how you are calling it in post#3.
what is the second arg used for? What values are you using when you call the method?
Your code...
How and where are the grades PUT into the jimmy object so that you can pull them?
Where do the values for the scores come from? How are they loaded into the program?
When trying to find a bug in code (debug) you can use the System.out.println() statement to display the values of variables so you can see what the computer sees and understand what the code is...
Add the debug printlns to all called methods so you can see what the variables' values are.
What happens when you compile and execute the code? What is printed?
System.out.println(projectLength);
vs this: add an id string:
System.out.println("pL="+projectLength);
Also add some printlns in the method that is called to show the values of the variables...
Add a call to System.out.println() that prints out the values of the variables used in the while() statement. Put the println statement before the while() statement. What it prints out should help...