title: Java syntax error on token.... Identifier expected after this token
body: <p>I am getting Java </p>
  
  <blockquote>
    <p>Syntax error on token "callMe", Identifier expected after this token </p>
  </blockquote>
  
  <p>on below line of my program:</p>
  
  <pre><code>c1.callMe();
  </code></pre>
  
  <pre><code>class Class2 {
      Class1 c1 = new Class1();
      c1.callMe();
  }
  
  public class Class1 {
      public void callMe() {
          System.out.println("I am called!!");
      }
  }
  </code></pre>