Integer & Long wrapper classes convert numbers in base 10 to other bases.
Conversion methods, toXxxString() take an int or long & return a
String representation of the Converted number, for e.g
String s1=Integer.toHexString(254);//convert 254 to hex
System.out.println("254 is" + s1);//"254 is fe"
String s2=Integer.toOctalString(254);//convert 254 to octal
System.out.println("254 (oct) =" + s1);//"254 (oct)=376"
please anyone explain me how it's produce this output.