title: Reading Numbers until condition met
body: <p>I'm trying to ask the user to keep typing in numbers until they type -1 once they do the code will say Thank you see you later! I'm kind of stuck right now cause my loop is infinite loop and I'm trying to solve it without using iterations. This is what I have. </p>
  
  <pre><code>Scanner reader = new Scanner(System.in);
  System.out.println("Type numbers: ");
  int num = Integer.parseInt(reader.nextLine());   
  while (num &lt; -1 || num &gt; -1) {
      System.out.println(num);   
          if (num == -1) {
          System.out.println("Thank you and see you later!");
          break;
      }
  
  }
  </code></pre>