IntegerPrinter.java 411B

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