public class BinaryAlen
{
    private int[] binary = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};


    BinaryAlen(int dec) {
        for (int biNum = binary.length - 1; biNum >= 0; biNum--) {
            binary[biNum] = dec % 2;
            dec = dec / 2;
        }

        showBinary();
    }

    BinaryAlen(String biInput) {
        for (int l = (biInput.length() - 1 ), j = (binary.length - 1); l >= 0; l--, j--) {
            char bit = biInput.charAt(l);

            if (bit == '0') {
                binary[j] = 0;
            }

            else if (bit == '1') {
                binary[j] = 1;
            }
        }
    }

    public String showBinary() {
        String ans = "";
        for (int biNum = binary.length - 1; biNum >= 0; biNum--) {
            ans = binary[biNum] + ans;
        }
        System.out.println(ans);
        return ans;
    }

    public int toDecimal() {
        int decimal = 0;
        int i = 0;
        for (int biNum = binary.length - 1, m = 1; biNum >= 0; biNum--, m = m * 2) {
            i = binary[biNum];
            i = i * m;
            decimal = decimal + i;
        }
        return decimal;
    }

    public String toString() {
        String out = "";

        for (int bit : binary) {
            out += bit;
        }

        return out;
    }
}

@@ -12,20 +12,16 @@
 s Binary
-Alen
 %0A%7B%0A    p
@@ -39,17 +39,20 @@
 %5D binary
- 
+; //
 = %7B0, 0,
@@ -144,31 +144,512 @@
 0, 0%7D;%0A%0A
-%0A    BinaryAlen
+    int deci = 0;%0A    %0A    Binary (int dec) %7B %0A        int n = 0;%0A        deci = dec;%0A        String length = %22%22;%0A        while (dec %3E 0) %7B%0A            n = dec %25 2;%0A            length = length + n;%0A            dec = dec / 2;%0A        %7D%0A        System.out.println(length);%0A        binary = new int%5Blength.length()%5D;%0A        %0A        for (int biNum = binary.length - 1; biNum %3E= 0; biNum--) %7B%0A            binary%5BbiNum%5D = deci %25 2;%0A            deci = deci / 2;%0A        %7D%0A    %7D%0A    %0A    /*%0A    Binary 
 (int dec
@@ -785,32 +785,33 @@
  / 2;%0A        %7D%0A
+ 
 %0A        showBin
@@ -819,24 +819,32 @@
 ry();%0A    %7D%0A
+    */%0A 
 %0A    BinaryA
@@ -846,12 +846,8 @@
 nary
-Alen
 (Str
@@ -857,24 +857,121 @@
  biInput) %7B%0A
+        binary = new int%5BbiInput.length()%5D;%0A        if (biInput.length() %3C= binary.length) %7B%0A    
         for 
@@ -1061,16 +1061,20 @@
         
+    
 char bit
@@ -1095,17 +1095,25 @@
 rAt(l);%0A
-%0A
+    %0A    
         
@@ -1142,32 +1142,36 @@
                 
+    
 binary%5Bj%5D = 0;%0A 
@@ -1173,35 +1173,47 @@
  0;%0A            
-%7D%0A%0A
+    %7D%0A    %0A    
             else
@@ -1239,32 +1239,36 @@
                 
+    
 binary%5Bj%5D = 1;%0A 
@@ -1270,33 +1270,134 @@
  1;%0A            
-%7D
+    %7D%0A            %7D%0A        %7D%0A        else %7B%0A            throw new Error(%22Can not be longer than 32%22);
 %0A        %7D%0A    %7D
@@ -1393,24 +1393,25 @@
     %7D%0A    %7D%0A
+ 
 %0A    public 
@@ -1624,32 +1624,33 @@
 turn ans;%0A    %7D%0A
+ 
 %0A    public int 
@@ -1645,19 +1645,20 @@
  public 
-int
+long
  toDecim
@@ -1668,27 +1668,28 @@
 ) %7B%0A        
-int
+long
  decimal = 0
@@ -1698,19 +1698,20 @@
         
-int
+long
  i = 0;%0A
@@ -1884,16 +1884,51 @@
 al + i;%0A
+            System.out.println(i);%0A
         
@@ -1955,24 +1955,25 @@
 imal;%0A    %7D%0A
+ 
 %0A    public 
@@ -2017,16 +2017,17 @@
 t = %22%22;%0A
+ 
 %0A       
@@ -2086,16 +2086,17 @@
       %7D%0A
+ 
 %0A       

Update BinaryAlen.java