IntegerPrinter.java 452B

12345678910111213141516171819202122
  1. import java.util.Scanner;
  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. }