long input in JAVA

Java
Scanner scr=new Scanner(System.in);
long l=scr.nextInt();
Source

Also in Java: