Here you can find the source of stringToLong(String input)
public static Long stringToLong(String input)
//package com.java2s; public class Main { public static Long stringToLong(String input) { try {// w w w . j a va 2 s.com return Long.parseLong(input); } catch (NumberFormatException e) { // e.printStackTrace(); return 0l; } } }