Here you can find the source of toLong(String obj)
public static long toLong(String obj)
//package com.java2s; public class Main { public static long toLong(String obj) { try {//from w ww.j a v a 2 s . co m return Long.parseLong(obj); } catch (Exception e) { } return 0; } }