title: Boolean and switch statement-combination
body: <p>Im working on a task and the code is free from warning-messages. When i try to run the code in the console i get the message: "Exception in thread "main" java.util.InputMismatchException"</p>
  
  <p>I have tried a several diffent combination with using the INT "oddoreven" for everything and even go for the String "Fraga". But nothing seems to work.</p>
  
  <pre><code>import java.util.Scanner;
  import java.lang.*;
  
  public class fragor {
      public static void main(String[] args) {
          Scanner input = new Scanner(System.in);
  
          System.out.println("Please ask me a question!");
  
          int oddoreven  = input.nextInt();
          String Fraga = input.nextLine();
  
          boolean even = oddoreven % 2 == 0; 
          boolean odd = oddoreven % 1 == 0;
          boolean fragetecken = Fraga.endsWith("?");
          boolean utropstecken = Fraga.endsWith("!");
  
          int cases = 0;
          switch (cases) {
              case 1:
                  fragetecken = Fraga.endsWith("?");
                  even = oddoreven % 2 == 0;
                  System.out.println("Yes.");
              break;
  
              case 2:
                  fragetecken = Fraga.endsWith("?");
                  odd = oddoreven % 1 == 0;
                  System.out.println("No.");
              break;
  
              case 3:
                  utropstecken = Fraga.endsWith("!");
                  System.out.println("Wow.");
              break;
  
              default: 
                  System.out.println("You allways say" +Fraga);
          }
      }
  }
  </code></pre>
  
  <p>Would appreciate if someone here could help me on the way to find a solution.
  Thanks in advance! </p>