Insert the statement into the method body.
You've already written
public class QuizClass { private int instanceVar; public void doSomething (String theParameter) { double localVar; } }and
System.out.println ("The parameter is \"" + theParameter + "\".");They go together as
public class QuizClass { private int instanceVar; public void doSomething (String theParameter) { double localVar; System.out.println ("The parameter is \"" + theParameter + "\"."); } }
System.out.println(...)
) must be inside the body of a
method.