title: Cannot find symbol System.console().readInt();
body: <p>This is my code:</p>
  
  <pre><code>import java.io.PrintWriter;
  import java.io.FileNotFoundException;
  
  public class Main {
  public static void main(String[] args) throws FileNotFoundException {
  
      String enter = "Enter";
      String resolve = "Resolve";
      String store = "Store";
  
      // if file doesn't exist
      int nextjob = 1;
      int jobnumber = nextjob;
      int phonenumber = System.console().readInt();
      int numberoflines = System.console().readInt();
      String problem = System.console().readLine();
      int time = System.console().readInt();
  
      String command = System.console().readLine();
      if(command.equals(store)){
          PrintWriter writer = new PrintWriter("openjobs.txt");
          writer.println(nextjob);
          writer.println(jobnumber);
          writer.println(phonenumber);
          writer.println(numberoflines);
          writer.println(problem);
          writer.println(time);
          writer.close();
      }
    }
  }
  </code></pre>
  
  <p>This is the output:</p>
  
  <pre><code>Main.java:14: error: cannot find symbol
          int phonenumber = System.console().readInt();
                                            ^
  symbol:   method readInt()
  location: class Console
  </code></pre>