Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. static String unhide_letter(String word, String hidden_word, Character letter){
  2. Integer dlugosc = word.length();
  3. for(Integer i=0; i<dlugosc; i++){
  4. if(letter.toUpperCase(letter) == word.charAt(i).toUpperCase(word.charAt(i))){
  5. hidden_word = hidden_word.substring(0, i) + word.charAt(i) + hidden_word.substring(i+1);
  6. }
  7. }
  8. return hidden_word;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement