title: How to read multiple Integer values from a single line of input in Java?
body: <p>I am working on a program and I want to allow a user to enter multiple integers when prompted. I have tried to use a scanner but I found that it only stores the first integer entered by the user. For example:</p>
  
  <p>Enter multiple integers: 1 3 5</p>
  
  <p>The scanner will only get the first integer 1. Is it possible to get all 3 different integers from one line and be able to use them later? These integers are the positions of data in a linked list I need to manipulate based on the users input. I cannot post my source code, but I wanted to know if this is possible.</p>