HasNext für Scannerklasse Java

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