[Solved] Checking amount of booleans that are true, and executing differently depending on the amount [closed]

[ad_1]

int i = 0;

for(boolean b : array)
    if(b) i++;

switch(i){
case 0:

case 1:

case 2:

}

[ad_2]

solved Checking amount of booleans that are true, and executing differently depending on the amount [closed]