Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String text = textEditor.getText();
- int dolzina = what.length();
- int stevec = 0;
- int first = 0;
- int i = text.indexOf(what);
- if (i >= 0){
- while(i != -1){
- i = text.indexOf(what, i+dolzina);
Add Comment
Please, Sign In to add comment