Scanner in=new Scanner(System.in);
Input of integer variable: int a=in.nextInt();
(Long type: long a=in.nextLong(); Short type: short a=in.nextShort();)
Input of floating-point variable; float a=in.nextFloat(); (single precision) double a=in.nextDouble(); (double precision)
Input of type byte; byte a=in.nextByte();
Boolean input: boolean a=in.nextBoolean();
String input: String a=in.next();