int n = 1023; System.out.printf("Decimal: %d\n", n); System.out.printf("Octal: %o\n", n); System.out.printf("Lowercase hexadecimal: %x\n", n); System.out.printf("Uppercase hexadecimal: %X\n", n);