Error message should tell you what is wrong and in which line wrong things most likely heppened. So, please copy error message and post here exactly as it appears (not a screenshot, just a text).
Dustin Boor wrote:When I try to do it in my IDE I get a syntax error. When I try to call temp1.calculatePay(hours, payRate, grossPay) I get an error. What am I doing wrong?
Campbell Ritchie wrote:You can make grossPay a local variable in that method, as an alternative. Are you using Eclipse? Please realise that the many suggestions given when you click the red mark are suggestions. You need to decide which to use, if any.