aishwaryaneelakandan / Assignment

1 stars 1 forks source link

task1030 #19

Open ravi-priya opened 3 years ago

ravi-priya commented 3 years ago

10/30 assignment

write these methods in Collect8 class( Collect8.java) and a test for each in Collect8Test.java

  1. Write a method to associate the specified value with the specified key in a Tree Map.

  2. Write a method to copy a Tree Map content to another Tree Map.

  3. Write a method to search a key in a Tree Map.

  4. Write a method to search a value in a Tree Map.

  5. Write a method to get all keys from the given a Tree Map.

  6. Write a method to delete all elements from a given Tree Map.

  7. Write a method to sort keys in Tree Map by using comparator.

  8. Write a method to get a key-value mapping associated with the greatest key and the least key in a map.

  9. Write a method to get the first (lowest) key and the last (highest) key currently in a map.

  10. Write a method to get a reverse order view of the keys contained in a given map.

  11. Write a method to get a key-value mapping associated with the greatest key less than or equal to the given key.

  12. Write a method to get the greatest key less than or equal to the given key.

  13. Write a method to get the portion of a map whose keys are strictly less than a given key.

  14. Write a method to get the portion of this map whose keys are less than (or equal to, if inclusive is true) a given key.

  15. Write a method to get the least key strictly greater than the given key. Return null if there is no such key.

  16. Write a method to get a key-value mapping associated with the greatest key strictly less than the given key. Return null if there is no such key.

  17. Write a method to get the greatest key strictly less than the given key. Return null if there is no such key.

  18. Write a method to get NavigableSet view of the keys contained in a map.

  19. Write a method to remove and get a key-value mapping associated with the least key in a map.

  20. Write a method to remove and get a key-value mapping associated with the greatest key in this map.

  21. Write a method to get the portion of a map whose keys range from a given key (inclusive), to another key (exclusive).

  22. Write a method to get the portion of a map whose keys range from a given key to another key.

  23. Write a method to get a portion of a map whose keys are greater than or equal to a given key.

  24. Write a method to get a portion of a map whose keys are greater than to a given key.

  25. Write a method to get a key-value mapping associated with the least key greater than or equal to the given key. Return null if there is no such key.

  26. Write a method to get the least key greater than or equal to the given key. Returns null if there is no such key.

aishwaryaneelakandan commented 3 years ago

https://github.com/aishwaryaneelakandan/Assignment/tree/master/Assignment/src

aishwaryaneelakandan commented 3 years ago

https://github.com/aishwaryaneelakandan/Assignment/tree/master/Assignment/src

aishwaryaneelakandan commented 3 years ago

https://github.com/aishwaryaneelakandan/Assignment/tree/master/Assignment/src