Hey,
A boolean array can be considered to be a binary number e.g.
boolean[] four = {true, false, false}; //100
I would like to convert such an array to its decimal equivalent e.g.
int decimal = convertBooleanArrayToDecimal(four);
//decimal == 4
How can I do so?
Cheers,
Pete