Here you can find the source of atol(final String str, final long def)
public static long atol(final String str, final long def)
//package com.java2s; public class Main { public static long atol(final String str, final long def) { try {/*from w w w. j ava 2s .c o m*/ return Long.parseLong(str); } catch (final Exception ex) { ex.printStackTrace(); } return def; } }