Guest User

Untitled

a guest
Jun 24th, 2018
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. if(v.element()!= null) //if the node is not null
  2. {
  3. //if word is between word1 and word2, or same as word1 and word2
  4. if((v.element().getValue().getWord().compareTo(word1) > 0 && v.element().getValue().getWord().compareTo(word2) < 0) || (v.element().getValue().getWord().compareTo(word1) == 0 || (v.element().getValue().getWord().compareTo(word2) == 0)))
  5. betweenTwoWords.add(v.element().getValue()); //add WordNode into ArrayList betweenTwoWords
  6. }
Add Comment
Please, Sign In to add comment