Advertisement
Guest User

Untitled

a guest
May 27th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.22 KB | None | 0 0
  1. private boolean ganhou(){
  2.     for(int atual : tela){
  3.         //faz a comparação de todos os elementos com o primeiro, se algum for diferente o metodo retorna o valor false
  4.         if(tela[0] != atual) return false;
  5.     }
  6.     return true;
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement