package class3_3_Loops; import java.util.Scanner; public class Console { public static void main(String[] args) { Scanner in = new Scanner(System.in); // int x = in.nextInt(); // System.out.println("You entered the integer: "+x); // double d = in.nextDouble(); // System.out.println("You entered the double: "+d); // String word = in.next(); // System.out.println("You entered the word: "+word); String line = in.nextLine(); System.out.println("You entered the line: "+line); Scanner lineScanner = new Scanner(line); int i = lineScanner.nextInt(); double d2 = lineScanner.nextDouble(); String word2 = lineScanner.next(); System.out.println("i: "+i+"d: "+d2+"word2: "+word2); } }