Here you can find the source of toLong(String value)
public final static long toLong(String value)
public class Main{ public final static long toLong(String value) { try {/* ww w .j a v a 2 s .c o m*/ return Long.parseLong(value); } catch (Exception e) { Debug.warning(e); } return 0; } }