how to covert given binary string to integer code example Example: binary string to int java int decimal=Integer.parseInt(binaryString,2);