title: User input if statements in Java not working
body: <p>I am using scanner to take user input.</p>
  
  <pre><code>Scanner scanner = new Scanner(System.in);
  
  Int choice = scanner.nextInt();
  
  if(choice==1) {
      System.out.println(" you chosed number 1!")
  }
  
  if(choice==2) {
      System.out.println(" you chosed number 2!")
  }
  
  if(choice==3) {
      System.out.println(" you chosed number 3!")
  }
  
  if(choice==q) {
      System.out.println("the game will end now!");
  }
  </code></pre>
  
  <p>So when you enter the game you have a menu that pops up. You can chose between 1, 2, 3 or q. If you press any of the numbers the game will take you to those sections.
  But if you press q the game will end.</p>
  
  <p>I don't know how to fix so that I can enter q and game ends.</p>