java.lang.Long.valueOf(String s, int radix)


java.lang.Long.valueOf(String s, int radix)

package com.codingdict;



import java.lang.*;



public class LongDemo {



   public static void main(String[] args) {



      Long l = new Long(30);



      String str = "75650";

      /* returns a Long instance representing the specified 

         string with radix 10 */

      System.out.println("Value = " + l.valueOf(str, 10));

   }

}