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