12345678910111213141516171819202122 |
-
-
-
- public class IntegerPrinter {
-
- public String printIntegerAsBinary(int value){
- return Integer.toBinaryString(value);
- }
-
- public String printIntegerAsOctal(int value){
- return Integer.toOctalString(value);
- }
-
- public String printIntegerAsHexadecimal(int value){
- return Integer.toHexString(value);
- }
-
- public static void main(String[] args){
-
- }
- }
|