import java.util.Scanner;
public class TestScanner{
public static void main(String args[] )
{Scanner scanner=new Scanner(System.in);
System.out.print("Enter an integer:");
int intValue=scanner.nextInt( );
System.out.println("you entered the integer"+intValue);
System.out.print("Enter a double value:");
double doubleValue=scanner.nextDouble( );
System.out.println("you entered the double value"+doubleValue);
System.out.print("Enter a string without space:");
String string=scanner.next( );
System.out.println("you entered the string"+string);
}
}