Advertisement
Guest User

Untitled

a guest
Feb 25th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. public static boolean booleanExpression(boolean ... a) {
  2.  
  3. int i = 0;
  4.  
  5. for(boolean j:a){
  6. if (j == true){
  7. i += 1;
  8. }
  9. }
  10. if (i == 2){
  11. return true;
  12. } else {
  13. return false;
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement