reset password
Author Message
dtang9
Posts: 52
Posted 10:31 Oct 19, 2018 |

If I use two implementations of Comparator, should I create two separate classes to do so?

jhurley
Posts: 207
Posted 14:40 Oct 19, 2018 |

yes

dtang9
Posts: 52
Posted 16:37 Oct 20, 2018 |
What is the difference between "shows each entry in the Map it receives " and "look up a few entries in the map individually" ?
Last edited by dtang9 at 16:44 Oct 20, 2018.
jhurley
Posts: 207
Posted 16:52 Oct 20, 2018 |

first is to traverse the entire map and show everything

second is to look up a couple of entries by their keys

dtang9
Posts: 52
Posted 16:58 Oct 20, 2018 |

Thank you, I understand the first part. For looking up entries by key, do we hardcode the key or take user input for the key?

jhurley
Posts: 207
Posted 17:31 Oct 20, 2018 |

hard code is OK

dtang9
Posts: 52
Posted 12:31 Oct 21, 2018 |

In the sample output, it shows a map of Zombie attacks, but looking up a few entries individually shows Vampire attacks with different victims. Do we show everything in one map then create a new map with a different monster type and look up entries in it?

Last edited by dtang9 at 13:15 Oct 21, 2018.
jhurley
Posts: 207
Posted 16:38 Oct 21, 2018 |

show the items in the map each time you run the method, so sometimes it will be ll zombies, other times all vampires