I'd like to write a program that converts binary to decimal using arrays. This is the code I have written so far:

```
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<ConValue.length; i++){
       ConValue [i] = in.nextInt();
     }
}

```