Open ravi-priya opened 4 years ago
write these methods in Collect5 class( Collect5.java) and a test for each in Collect5Test.java
Write a method to create a new tree set, add some colors (string) and print out the tree set.
Write a method to iterate through all elements in a tree set.
Write a method to add all the elements of a specified tree set to another tree set.
Write a method to create a reverse order view of the elements contained in a given tree set.
Write a method to get the first and last elements in a tree set.
Write a method to clone a tree set list to another tree set.
Write a method to get the number of elements in a tree set.
Write a method to compare two tree sets.
Write a method to find the numbers less than 7 in a tree set.
Write a method to get the element in a tree set which is greater than or equal to the given element.
Write a method to get the element in a tree set which is less than or equal to the given element.
Write a method to get the element in a tree set which is strictly greater than or equal to the given element.
Write a method to get an element in a tree set which is strictly less than the given element.
Write a method to retrieve and remove the first element of a tree set.
Write a method to retrieve and remove the last element of a tree set.
Write a method to remove a given element from a tree set.
https://github.com/aishwaryaneelakandan/Assignment/tree/master/Assignment/src
write these methods in Collect5 class( Collect5.java) and a test for each in Collect5Test.java
Write a method to create a new tree set, add some colors (string) and print out the tree set.
Write a method to iterate through all elements in a tree set.
Write a method to add all the elements of a specified tree set to another tree set.
Write a method to create a reverse order view of the elements contained in a given tree set.
Write a method to get the first and last elements in a tree set.
Write a method to clone a tree set list to another tree set.
Write a method to get the number of elements in a tree set.
Write a method to compare two tree sets.
Write a method to find the numbers less than 7 in a tree set.
Write a method to get the element in a tree set which is greater than or equal to the given element.
Write a method to get the element in a tree set which is less than or equal to the given element.
Write a method to get the element in a tree set which is strictly greater than or equal to the given element.
Write a method to get an element in a tree set which is strictly less than the given element.
Write a method to retrieve and remove the first element of a tree set.
Write a method to retrieve and remove the last element of a tree set.
Write a method to remove a given element from a tree set.