| 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| w___w_w_.__j___a___v___a2_s.__c_o___m | Contact Us |
| Copyright 2009 - 12 Demo Source and Support. All rights reserved. |
| All other trademarks are property of their respective owners. |