Can someone explain the difference between toHexString and
toString(primitive, radix) ?
For example, the following yields the same results:
public class LongToHex {
public static void main(
String[] args) {
String bob = Long.toHexString(25);
System.out.println("bob = " + bob);
String ted = Long.toString(25,16);
System.out.println("ted = " + ted);
}
}
output:
bob = 19
ted = 19
Thanks
alot!
:-)
JerryB