Suppose I have a boolean array:
I want to convert it to a decimal number like a binary number. I this case the array represents number 110011 in decimal. So how do I convert the array to binary and then integer?
Code:
boolean[] b = {true, true, false, false, true, true};
Comment