#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.
In questa pagina del sito puoi guardare il video online TreeSet Collection in della durata di ore minuti seconda in buona qualità , che l'utente ha caricato HandShake 4U 01 gennaio 1970, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 30 volte e gli è piaciuto 6 spettatori. Buona visione!