• TreeSet implementation

    TreeSet implementation using Iterator

    We already know implementation of ArrayList using Iterator Class in our ArrayList blogs. Here we will work on TreeSet implementation. Now, we will see how to fetch data from TreeSet using iterator() method.   TreeSet collection type gives ascending order of this data.   Let’s see simple example on TreeSet implementation.   import java.util.*; class […]

    Share and Enjoy

    • Facebook
    • Twitter
    • Delicious
    • LinkedIn
    • StumbleUpon
    • Add to favorites
    • Email
    • RSS
  • collection set

    How many collection set in Java Program?

    Three types of collection set in java programs. LinkedHashSet collection set HashSet TreeSet Generally these three work same in java collection programming. But in this blog, we will see basic different between collection set. LinkedHashSet works same as added data in Set. HashSet works as randomly with data. TreeSet works ascending order with data.   […]

    Share and Enjoy

    • Facebook
    • Twitter
    • Delicious
    • LinkedIn
    • StumbleUpon
    • Add to favorites
    • Email
    • RSS