Java tutorial
//package com.java2s; public class Main { public static long parseLong(String str) { long num = 0; try { num = Long.parseLong(str); } catch (Exception e) { } return num; } }