Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. String check = new String();
  2. int counter = 0;
  3. for loop (i = 0; i <word.length(); i++)
  4. {
  5. check == word.substring(i,i+3)
  6. if (check.equals([parameter])
  7. {
  8. if (word.charAt(i+4) == ' ' || word.charAt(i+4) == '.')
  9. {
  10. counter++;
  11. }
  12. }
  13. }
  14. return counter;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement