Java tutorial
//package com.java2s; public class Main { public static Long parseLong(String s) { try { return new Long(s); } catch (NumberFormatException e) { return null; } } }