title: The scanner is only reading the first line
body: <pre><code>import java.util.Scanner;
  
  public class ArithmeticDemo {
      public static void main(String[] args)
      {
          int firstNumber;
          int secondNumber;
          int sum;
          int difference;
          int average;
          Scanner input = new Scanner(System.in);
          System.out.print("Please enter a double &gt;&gt; 14");
          firstNumber = input.nextInt();
          System.out.print("Please enter another double &gt;&gt; 11 ");
          secondNumber = input.nextInt();
          sum = firstNumber + secondNumber;
          difference = firstNumber - secondNumber;
          average = sum / 2;
          System.out.println(firstNumber + " + " + secondNumber + " is " + sum);
          System.out.println(firstNumber + " - " + secondNumber + " is " + difference);
          System.out.println("The average of " + firstNumber + " and " + secondNumber + " is " + average);
      }
  }
  </code></pre>
  
  <p>I am doing school homework and everything seems fine to me at glance I even took a break and came back but the code is supposed to display when executed</p>
  
  <pre><code>Please enter an integer &gt;&gt; 14
  Please enter another integer &gt;&gt; 11
  14 + 11 is 25
  14 - 11 is 3
  The average of 14 and 11 is 12
  </code></pre>
  
  <p>But when I execute it, it only reads </p>
  
  <pre><code>Please enter an integer &gt;&gt; 14
  </code></pre>
  
  <p>I am using Eclipse and it stats there is something wrong with my scanner input command but I am unsure of what it is, thanks for the help.</p>