IntegerPrinter.java 416B

12345678910111213141516171819202122
  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. }