IntegerPrinter.java 420B

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