Return | Method | Summary |
---|---|---|
String | toString() | Returns a String object representing this Long's value. |
static String | toString(long i) | Returns a String object representing the specified long. |
static String | toString(long i, int radix) | Returns a string representation of the argument i in the radix. |
public class Main {
public static void main(String[] args) {
System.out.println(Long.toString(10));
System.out.println(Long.toString(10,8));
}
}
The output:
10
12
java2s.com | Contact Us | Privacy Policy |
Copyright 2009 - 12 Demo Source and Support. All rights reserved. |
All other trademarks are property of their respective owners. |