Advertisement
Guest User

Untitled

a guest
Feb 24th, 2020
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. public int notInVocab(String[] wordArray){
  2.  
  3. int count = 0;
  4.  
  5. int j = 0;
  6.  
  7. String[] notInVocabArr = new String[countNotInVocab(wordArray)];
  8.  
  9. for(int i=0; i<wordArray.length(); i++)
  10.  
  11. {
  12.  
  13. if(!findWord(wordArray[i]))
  14.  
  15. {
  16.  
  17. notInVocabArr[j] = wordArray[i];
  18.  
  19. j++;
  20.  
  21. }
  22.  
  23. }
  24.  
  25. return notInVocabArr;
  26.  
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement