Java tutorial
public class Main { public static void main(String[] args) { String str = "123456789098765"; System.out.println("Value = " + Long.valueOf(str, 10)); } }