title: Syntax errors on token for System.out.println
body: <p>I'm making a class called Sphere and I want to prompt the user to input the Diameter and I keep getting this error in Eclipse for the part of code that is asking for input.</p>
  
  <p>Error:</p>
  
  <p>Multiple Markers at this line</p>
  
  <ul>
  <li><p>Syntax error on token(s), misplaced constructs(s)</p></li>
  <li><p>Syntax error on token ""Please enter diameter"", delete this token</p></li>
  </ul>
  
  <p>My code so far:</p>
  
  <pre><code>import java.util.Scanner;
  import java.lang.Math;
  public class Sphere {
  public static void main(String[] args) {
  }
      public int diam;
      Scanner input = new Scanner(System.in);
      System.out.println("Please enter diameter"); //error on this line
  
  }
  </code></pre>