Daily Archives: April 21, 2010

ListIterator with an example


ListIterator allows the programmer to traverse the list in either direction, modify the list during iteration, and obtain the iterator’s current position in the list. A ListIterator has no current element; its cursor position always lies between the element that

Posted in JAVA

Iterator with an example


Using Iterator we can iterate only in forward direction and you cannot add elements while iterating and Here cursor always points to specific index. Example:  public class Example {   public static void main(String[] args) { ArrayList aList = new

Posted in JAVA

When to go for Sortedset


When you want to sort the data we have to go with sortedset by default the sorting order is ascending. You can customize the sorting order by Implementing comparator interface. You can use treeset for sorting and for this you

Posted in JAVA

HashSet with Example


If  our requirement is frequent insert then we go with HashSet. For efficiency objects added to a HashSet need to implement the hashCode() method in a manner that properly distributes the hash codes. While most system classes override the default

Posted in JAVA

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 679 other followers

Calendar
April 2010
M T W T F S S
« Jul   May »
 1234
567891011
12131415161718
19202122232425
2627282930  
Mallikarjun Gunda

This is Mallikarjun Gunda, I am working as a software professional. Blogging is my Passion. This blog contains the posts on Java related technologies and programming languages. I am happy to share my knowledge through the blogs.

Blog Stats
  • 314,092 hits
IndiBlogger
malliktalksjava.wordpress.c...
70/100