int decimal=Integer.parseInt(binaryString,2);
System.out.println(Integer.parseInt("1010",2));
int foo = Integer.parseInt("1001", 2); // 2 is the radix