Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String [] palavra = {"P", "R", "E", "V", "A", "R", "I", "C", "A", "R"};
- String [] tela = {"P", "_", "E", "_", "A", "_", "I", "_", "A", "_"};
- int pontuacao = 0;
- for(int i = 0; i < tela.length; i++){
- if(palavra[i].equals(tela[i])){
- pontuacao++;
- }
- }
Add Comment
Please, Sign In to add comment