public class IntegerPrinter { public String printIntegerAsBinary(int value){ System.out.println(Integer.toBinaryString(value)); return Integer.toBinaryString(value); } public String printIntegerAsOctal(int value){ System.out.println(Integer.toOctalString(value)); return Integer.toOctalString(value); } public String printIntegerAsHexadecimal(int value){ System.out.println(Integer.toHexString(value)); return Integer.toHexString(value); } public static void main(String[] args){ } }