Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private boolean ganhou(){
- for(int atual : tela){
- //faz a comparação de todos os elementos com o primeiro, se algum for diferente o metodo retorna o valor false
- if(tela[0] != atual) return false;
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement