java.lang.Long.toString(long i, int radix) java.lang.Long.toString(long i) java.lang.Long.valueOf(long l) java.lang.Long.toString(long i, int radix) package com.codingdict; import java.lang.*; public class LongDemo { public static void main(String[] args) { Long l = new Long(5); // returns a string representation of the specified long with radix 10 String retval = l.toString(87630, 10); System.out.println("Value = " + retval); // returns a string representation of the specified long with radix 16 retval = l.toString(87630, 16); System.out.println("Value = " + retval); // returns a string representation of the specified long with radix 8 retval = l.toString(87630, 8); System.out.println("Value = " + retval); } } java.lang.Long.toString(long i) java.lang.Long.valueOf(long l)