Made the method static, corrected two of the variable references in the method as well. However I still get the same error as before on line 22, which is the IF statement. It insists that what is...
Type: Posts; User: rberry719
Made the method static, corrected two of the variable references in the method as well. However I still get the same error as before on line 22, which is the IF statement. It insists that what is...
Thats the error I get from NetBeans for the error on line 22 of the code. Sorry if thats not the one that would help. I'll transcribe the one from the command prompt too if it helps.
Exception in...
Noted and thank you for the tip. Here's the error message:
Line 22: non-static method aSalary(int) cannot be referenced from a static context
incompatible types
required: boolean
found: ...
Hi, my names Robert and I'm an introductory Java student.
I have an assignment where the program receives an array of integers, runs them all through a formula, and then displays the results of...