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