Syntax Quiz 2, Step 7

Assignment:

Insert the parameter declaration into the method header.

My solution:

You've already written

public class QuizClass
  {
  private int instanceVar; 
  public void doSomething () 
     { 
     } 
  } 
and
 String theParameter 
Now put them together as
public class QuizClass
  {
  private int instanceVar; 
  public void doSomething (String theParameter) 
     { 
     } 
  } 

Common mistakes:

Putting the parameter declaration in the wrong place.
The declaration of parameters for a given method belongs between the parentheses of the method's header.

Stephen Bloch / sbloch@adelphi.edu