Convert binary to decimal using arrays in java
<p>I'd like to write a program that converts binary to decimal using arrays. This is the code I have written so far:</p>

<pre><code>public void BinConvertorDec(){
     int j;
     Scanner in = new Scanner(System.in);
     System.out.println("Enter Binery Index Size: ");
     j = in.nextInt();
     int []ConValue = new int[j]
     System.out.println("Enter a Binary value to convert:");
     for(int i=0; i&lt;ConValue.length; i++){
       ConValue [i] = in.nextInt();
     }
}
</code></pre>