TreeSet Collection in

Published: 01 January 1970
on channel: HandShake 4U
30
6

#TreeSet#
TreeSet is ordering of the elements is maintained by a set using their natural ordering whether or not an explicit comparator is provided. It can also be ordered by a Comparator provided at set creation time, depending on which constructor is used

Question
1) Create a TreeSet Object that can store object of student class.
The student class should contain fields like sid,name, course, mobile, mailid.
The Student object added in to the collection should be sorted using the ‘sid’ field in ascending order even if it is inserted in some other order or any random order
Iterate the collection object using Iterator.


On this page of the site you can watch the video online TreeSet Collection in with a duration of hours minute second in good quality, which was uploaded by the user HandShake 4U 01 January 1970, share the link with friends and acquaintances, this video has already been watched 30 times on youtube and it was liked by 6 viewers. Enjoy your viewing!