Scanner in = new Scanner(System.in); //after taking multiple values to go through the number of times values taken in.hasNext();