Guest User

Untitled

a guest
Jun 23rd, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. int i = 0;
  2. String salattuSana = "";
  3. while(i<this.sana.length()) {
  4. if(this.arvatutKirjaimet.contains(sana) && this.sana.contains(sana)) {
  5. salattuSana += this.sana.charAt(i);
  6. } else {
  7. salattuSana += "_";
  8. } i++;
  9. }
  10.  
  11.  
  12.  
  13. return salattuSana;
Add Comment
Please, Sign In to add comment