public class IntegerPrinter { public String printIntegerAsBinary(int value){ return printer(value, 2); } public String printIntegerAsOctal(int value){ return printer(value, 8); } public String printIntegerAsHexadecimal(int value){ return printer(value, 16); } public String printer(int value, int base) { return Integer.toString(value, base); } public static void main(String[] args){ } }