public static void main(String[] args) { }
System.out.println("TESTING\n");
int i; double d; String s1, s2; Scanner sc = new Scanner(System.in); System.out.print("Enter an integer: "); i = sc.nextInt(); System.out.print("Enter a floating point value: "); d = sc.nextDouble(); System.out.print("Enter a string: "); s1 = sc.next(); System.out.print("Enter a string terminated by a newline: "); s2 = sc.nextLine(); System.out.println("Here is what you entered: "); System.out.println(i); System.out.println(d); System.out.println(s1); System.out.println(s2);