Convert Java String to Long example
public class Main { public static void main(String[] args) { Long lObj1 = new Long("100"); System.out.println(lObj1); String str = "100"; Long lObj2 = Long.valueOf(str); System.out.println(lObj2); } }