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


int i = 0;

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

switch(i){
case 0:

case 1:

case 2:

}

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