Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static boolean booleanExpression(boolean ... a) {
- int i = 0;
- for(boolean j:a){
- if (j == true){
- i += 1;
- }
- }
- if (i == 2){
- return true;
- } else {
- return false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement