java.lang.Long.valueOf(String s) java.lang.Long.valueOf(long l) java.lang.Long.valueOf(String s, int radix) java.lang.Long.valueOf(String s) package com.codingdict; import java.lang.*; public class LongDemo { public static void main(String[] args) { Long l = new Long(30); String str = "57695"; // returns a Long instance representing the specified string System.out.println("Value = " + l.valueOf(str)); } } java.lang.Long.valueOf(long l) java.lang.Long.valueOf(String s, int radix)