@@ -0,0 +1,1101 @@
+%0Aimport java.util.ArrayList;%0Aimport java.util.BitSet;%0Aimport java.util.List;%0A%0Apublic class T%7B%0A%0A    final static char%5B%5D digits = %7B%0A            '0' , '1' , '2' , '3' , '4' , '5' ,%0A            '6' , '7' , '8' , '9' , 'a' , 'b' ,%0A            'c' , 'd' , 'e' , 'f' , 'g' , 'h' ,%0A            'i' , 'j' , 'k' , 'l' , 'm' , 'n' ,%0A            'o' , 'p' , 'q' , 'r' , 's' , 't' ,%0A            'u' , 'v' , 'w' , 'x' , 'y' , 'z'%0A    %7D;%0A%0A    public void transform(int num, int base)%7B%0A        List%3CInteger%3E list = new ArrayList%3C%3E();%0A        while(num != 0)%7B%0A            list.add(num %25 base);%0A            num /= base;%0A        %7D%0A        for(int i=(list.size()-1); i%3E=0; i--)%7B%0A            Integer integer = list.get(i);%0A            System.out.print(digits%5Binteger%5D);%0A%0A        %7D%0A    %7D%0A%0A    public static void main(String%5B%5D args) %7B%0A        int n = 242344;%0A        T t = new T();%0A        t.transform(n,16);%0A        System.out.println(%22*************%22);%0A        System.out.println(Integer.toOctalString(n));%0A        System.out.println(Integer.toBinaryString(n));%0A        System.out.println(Integer.toHexString(n));%0A%0A    %7D%0A%7D%0A

oct hex binary