| next() | hasNext() | | nextLine() | hasNextLine() | | nextInt() | hasNextInt() | | nextDouble() | hasNextDouble() | 10 16 pineapple 24 while (in.hasNextInt()) { print(in.nextInt()); }