JAVA Tutorials

The Collections framework in Java : Complete tutorials

Collections framework is one of the powerful feature of java. It basically introduced to store the different types of individual objects in a single entity. Framework provides the ready made methods to perform various operations like searching, sorting etc. It is present in the java.util package. The collections framework consist of the following components 1)Interfaces …

The Collections framework in Java : Complete tutorials Read More »

Comparator Interface in java : A complete tutorial

Comparator interface in java is used to sort the elements of collection in some specific orders. Features of Comparator interface 1) Comparator is present in java.util package. 2) Comparator has two methods – compare() and equals() method. Comparator Interface Methods There are two methods defined by the comparator interace 1) Public int compare( object obj1 ,object …

Comparator Interface in java : A complete tutorial Read More »