title: Elevator Simulator help in Java
body: <p>I'm having trouble finishing a basic elevator simulator in Java. What I have so far is an option that lets the user input whether they want to choose a floor, to pull a fire alarm, or to quit the simulation. When they choose select floor, they can pick any floor from 1 to 100, except 13. What I can't figure out how to do is to get the simulation to track their current floor so that they can go down. This is what I have so far:</p>
  
  <pre><code>public class Elevator {
  
      public Elevator() {}
  
      public void selectFloor() {
          Scanner scnr = new Scanner(System.in);
          int newFloor;
  
          System.out.println("Enter the floor you'd like to go to ==&gt; ");
          newFloor = scnr.nextInt();
          if (newFloor &gt; 100 || newFloor &lt; 0 || newFloor == 13) {
              System.out.println("Invalid selection");
          }
  
          else if (newFloor &lt;= 100 &amp;&amp; newFloor &gt; 0 &amp;&amp; newFloor != 13) {
              for (int i = 1; i &lt;= newFloor; i++)
                  System.out.println("..." + i);
                  System.out.println("Ding!");
          }
      }
  
      public void fireAlarm() {
          System.out.println("Danger, you must exit the building now!");
      }
  }
  </code></pre>
  
  <p>Also, would it be helpful to post my other class for this program?</p>