Here you can find the source of parseLong(String s)
public static Long parseLong(String s)
//package com.java2s; public class Main { public static Long parseLong(String s) { try {/*from w w w.j a v a 2 s . c o m*/ return new Long(s); } catch (NumberFormatException e) { return null; } } }