title: System.out.println error New programmer
body: <p>I'm trying to do a simple input program and I get an error on the <code>System.out.println</code> command, I don't know why it doesn't accept the command and can't continue working until I fix it.</p>
  
  <p>The error says:</p>
  
  <pre><code>Multiple markers at this line
      - Syntax error, insert ")" to complete MethodDeclaration
      - Syntax error, insert "Identifier (" to complete 
       MethodHeaderName
      - Syntax error on token ".", @ expected after this token
      - Syntax error, insert "SimpleName" to complete QualifiedName
  </code></pre>
  
  <p>My code goes as follows.</p>
  
  <pre><code>package classPack;
  
  import java.util.Scanner;
  
  public class Main {     
      Scanner s = new Scanner(System.in);
      int numone = s.nextInt();
      System.out.println("please input the number of numbers you want to analyze");
      Scanner r = new Scanner(System.in);
      int numtwo = s.nextInt();
  }
  </code></pre>