how to take long string input in java code example Example: long input in JAVA Scanner scr=new Scanner(System.in); long l=scr.nextInt();