Josh Gates Josh Gates - 6 months ago 18
Java Question

I keep receiving the error in eclipse

I keep receiving the error in eclipse : Syntax error, insert "... VariableDeclaratorId" to complete FormalParameterList on line 1 at (registered), might be an easy answer here but I am failing to see it. Thanks in advance.

public static void setRegistered(registered) {
Character.registered = registered;

Answer

You will need to change

public static void setRegistered(registered) {

to

public static void setRegistered(boolean registered) {
Comments