public static void main(String[] args) {
int intege = new Scanner(System.in).nextInt();
System.out.println("octo:"+Integer.toHexString(intege));
System.out.println("hex:"+Integer.toOctalString(intege));
}
* @param i an integer to be converted to a string. * @param radix the radix to use in the string representation. * @return a string representation of the argument in the specified radix. * @see java.lang.Character#MAX_RADIX * @see java.lang.Character#MIN_RADIX */ public static String toString(int i, int radix) {