Write a Java program to convert a binary to decimal code example Example: binary to int java int foo = Integer.parseInt("1001", 2); // 2 is the radix