Here you can find the source of getLongValue(String str)
public static long getLongValue(String str)
//package com.java2s; public class Main { public static long getLongValue(String str) { if (str != null && str.length() > 0) { try { return Long.parseLong(str); } catch (Exception e) { }/*from w ww . jav a 2 s . c o m*/ } return 0; } }