Open ravi-priya opened 3 years ago
10/30 assignment
write these methods in Collect8 class( Collect8.java) and a test for each in Collect8Test.java
Write a method to associate the specified value with the specified key in a Tree Map.
Write a method to copy a Tree Map content to another Tree Map.
Write a method to search a key in a Tree Map.
Write a method to search a value in a Tree Map.
Write a method to get all keys from the given a Tree Map.
Write a method to delete all elements from a given Tree Map.
Write a method to sort keys in Tree Map by using comparator.
Write a method to get a key-value mapping associated with the greatest key and the least key in a map.
Write a method to get the first (lowest) key and the last (highest) key currently in a map.
Write a method to get a reverse order view of the keys contained in a given map.
Write a method to get a key-value mapping associated with the greatest key less than or equal to the given key.
Write a method to get the greatest key less than or equal to the given key.
Write a method to get the portion of a map whose keys are strictly less than a given key.
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.
Write a method to get the least key strictly greater than the given key. Return null if there is no such key.
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.
Write a method to get the greatest key strictly less than the given key. Return null if there is no such key.
Write a method to get NavigableSet view of the keys contained in a map.
Write a method to remove and get a key-value mapping associated with the least key in a map.
Write a method to remove and get a key-value mapping associated with the greatest key in this map.
Write a method to get the portion of a map whose keys range from a given key (inclusive), to another key (exclusive).
Write a method to get the portion of a map whose keys range from a given key to another key.
Write a method to get a portion of a map whose keys are greater than or equal to a given key.
Write a method to get a portion of a map whose keys are greater than to a given key.
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.
Write a method to get the least key greater than or equal to the given key. Returns null if there is no such key.
https://github.com/aishwaryaneelakandan/Assignment/tree/master/Assignment/src
10/30 assignment
write these methods in Collect8 class( Collect8.java) and a test for each in Collect8Test.java
Write a method to associate the specified value with the specified key in a Tree Map.
Write a method to copy a Tree Map content to another Tree Map.
Write a method to search a key in a Tree Map.
Write a method to search a value in a Tree Map.
Write a method to get all keys from the given a Tree Map.
Write a method to delete all elements from a given Tree Map.
Write a method to sort keys in Tree Map by using comparator.
Write a method to get a key-value mapping associated with the greatest key and the least key in a map.
Write a method to get the first (lowest) key and the last (highest) key currently in a map.
Write a method to get a reverse order view of the keys contained in a given map.
Write a method to get a key-value mapping associated with the greatest key less than or equal to the given key.
Write a method to get the greatest key less than or equal to the given key.
Write a method to get the portion of a map whose keys are strictly less than a given key.
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.
Write a method to get the least key strictly greater than the given key. Return null if there is no such key.
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.
Write a method to get the greatest key strictly less than the given key. Return null if there is no such key.
Write a method to get NavigableSet view of the keys contained in a map.
Write a method to remove and get a key-value mapping associated with the least key in a map.
Write a method to remove and get a key-value mapping associated with the greatest key in this map.
Write a method to get the portion of a map whose keys range from a given key (inclusive), to another key (exclusive).
Write a method to get the portion of a map whose keys range from a given key to another key.
Write a method to get a portion of a map whose keys are greater than or equal to a given key.
Write a method to get a portion of a map whose keys are greater than to a given key.
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.
Write a method to get the least key greater than or equal to the given key. Returns null if there is no such key.