title: Adding 2 integers in 1 User input
body: <p>I want to make the user input 2 integers in 1 input like this</p>
  <blockquote>
  <p>Enter two integers: 2 2 // sum = 4</p>
  </blockquote>
  <p>Here is my sample code:</p>
  <pre><code>Scanner s = new Scanner(System.in);
      int x, num1, num2, sum;
          
      System.out.print(&quot;*Enter 2 integer: &quot;);
      x = s.nextInt();
  
      
      int sum = num1 + num2;
      System.out.println(&quot; Sum = &quot;+ sum);
  </code></pre>
  <p>Is it possible to add 2 integers without using variables num1 and num2?
  I want the output to be like this.</p>
  <blockquote>
  <p>Enter two integers: 2 2</p>
  </blockquote>
  <blockquote>
  <p>sum = 4</p>
  </blockquote>