Advertisement
Guest User

Untitled

a guest
Nov 28th, 2014
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.33 KB | None | 0 0
  1. Word left = new Word("Dog");
  2. Set<Word> right = new HashSet<>();
  3. right.add(new Word("Hound"));
  4. right.add(new Word("Mutt"));
  5. right.add(new Word("Pooch"));
  6.  
  7. // Write some code to call add(Word, Word) for each Word in the Set, such that
  8. // in this case you end up with:
  9. //   add(Dog, Hound);
  10. //   add(Dog, Mutt);
  11. //   add(Dog, Pooch);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement