Converting a String to a long type Number
public class Main { public static void main(String[] argv) throws Exception { long l = Long.parseLong("123"); System.out.println(l); } }