added toHexString() to java.lang.Long

This commit is contained in:
J. Treadwell 2009-03-09 14:54:31 -06:00
parent c11203b401
commit 8150d4a3b6

View File

@ -90,6 +90,10 @@ public final class Long extends Number implements Comparable<Long> {
return toString(v, 10);
}
public static String toHexString(long v) {
return toString(v, 16);
}
public byte byteValue() {
return (byte) value;
}