aishwaryaneelakandan / Assignment

1 stars 1 forks source link

task1023 #16

Open ravi-priya opened 4 years ago

ravi-priya commented 4 years ago

write these methods in Collect5 class( Collect5.java) and a test for each in Collect5Test.java

  1. Write a method to create a new tree set, add some colors (string) and print out the tree set.

  2. Write a method to iterate through all elements in a tree set.

  3. Write a method to add all the elements of a specified tree set to another tree set.

  4. Write a method to create a reverse order view of the elements contained in a given tree set.

  5. Write a method to get the first and last elements in a tree set.

  6. Write a method to clone a tree set list to another tree set.

  7. Write a method to get the number of elements in a tree set.

  8. Write a method to compare two tree sets.

  9. Write a method to find the numbers less than 7 in a tree set.

  10. Write a method to get the element in a tree set which is greater than or equal to the given element.

  11. Write a method to get the element in a tree set which is less than or equal to the given element.

  12. Write a method to get the element in a tree set which is strictly greater than or equal to the given element.

  13. Write a method to get an element in a tree set which is strictly less than the given element.

  14. Write a method to retrieve and remove the first element of a tree set.

  15. Write a method to retrieve and remove the last element of a tree set.

  16. Write a method to remove a given element from a tree set.

aishwaryaneelakandan commented 4 years ago

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

aishwaryaneelakandan commented 4 years ago

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

aishwaryaneelakandan commented 4 years ago

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

aishwaryaneelakandan commented 4 years ago

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