I am having trouble with one error. "The main method should call the sqr method with 5 as an argument." This is what I got so far. int a = 5; sqr(5); //Note that I tried it sqr(a) but same error. System.out.println(sqr(a)); I am stumped as to how to resolve this. I am sure it is something simple. Any help would be greatly appreciated. Thanks, Jeff
"The main method should call the sqr method with 5 as an argument."
You must be signed in to leave a comment
13 February 2019, 14:40
You need to attach your code when asking questions. There is a lot of information missing from what you shared that would help us address your issue. Also, the task you asked this question on is not the task that question is meant for. The requirements for this task are: 1. The program should output text. 2. The text should begin with "If you feel like it". 3. The text should end with "anyway". 4. The text should consist of 16 lines. 5. The displayed text must match the task conditions. go back to the task that you can't solve, use the help button on that task, ask your question, attach code like this: .
13 February 2019, 05:49
You should only be passing 5 into the method, maybe focus on what is happening inside the sqr(int a) method for a solution