IntegerPrinter.java 425B

123456789101112131415161718192021222324
  1. public class IntegerPrinter {
  2. public String printIntegerAsBinary(int value){
  3. return Integer.toBinaryString(value);
  4. }
  5. public String printIntegerAsOctal(int value){
  6. return Integer.toOctalString(value);
  7. }
  8. public String printIntegerAsHexadecimal(int value){
  9. return Integer.toHexString(value);
  10. }
  11. public static void main(String[] args){
  12. }
  13. }