Java: Identifier expected
<p>What's the issue here?</p>

<pre><code>class UserInput {
  public void name() {
    System.out.println("This is a test.");
  }
}

public class MyClass {
  UserInput input = new UserInput();
  input.name();
}
</code></pre>

<p>This complains:</p>

<pre><code>&lt;identifier&gt; expected
   input.name();
</code></pre>
