Guest User

Untitled

a guest
Jul 19th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.29 KB | None | 0 0
  1.         String text = textEditor.getText();
  2.  
  3.         int dolzina = what.length();
  4.         int stevec = 0;
  5.         int first = 0;
  6.  
  7.         int i = text.indexOf(what);
  8.         if (i >= 0){
  9.             while(i != -1){
  10.                
  11.                 i = text.indexOf(what, i+dolzina);
Add Comment
Please, Sign In to add comment