JavaTweets

Blog on Java Programming and Interview Questions

Utility class - Collections



  • Sort elements of Java ArrayList Example
  • Get Synchronized List from Java ArrayList example
  • Sort elements of Java LinkedList Example
  • Get Synchronized Set from Java HashSet example
  • Find maximum element of Java HashSet Example
  • Find Minimum element of Java HashSet Example
  • Making a Collection Read-Only in Java
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Home
Subscribe to: Posts (Atom)

Total Pageviews

Blog Archive

  • ▼  2012 (254)
    • ▼  August (44)
      • When should I use an interface instead of an abstr...
      • Compare two StringBuffer objects in Java
      • New Java 7 Features: Using String in the Switch St...
      • Comparing String with StringBuilder in Java
      • Comparing String with StringBuffer in Java
      • Difference between == , equals and equalsIgnoreCase
      • Java String to byte Array Example
      • Java Substring Example
      • Java String to Upper Case example
      • Java String to Lower Case example
      • Java String isEmpty Example
      • Java String Reverse Example
      • Java String Trim Example
      • Java String Split Example
      • Java String Replace Example
      • Java String Length Example
      • Determining If a String Contains a Substring in Java
      • Java String Concatenation and Performance
      • Java String Compare using compareTo and compareToI...
      • Java String methods - indexOf() and lastIndexOf()
      • Searching a String for a Character or a Substring ...
      • Java Char Array To String Example
      • Convert String to Character Array Example
      • Copy all the key-value pairs from one Map into ano...
      • Get Tail Map from Java TreeMap example
      • Get Head Map from Java TreeMap example
      • Get Sub Map from Java TreeMap example
      • Get lowest and highest key stored in Java TreeMap ...
      • Get Synchronized Map from Java TreeMap example
      • Remove value from Java TreeMap example
      • Remove all values from Java TreeMap example
      • Get Size of Java TreeMap Example
      • Check if a particular value exists in Java TreeMap...
      • Check if a particular key exists in Java TreeMap e...
      • How to get all keys in Java TreeMap?
      • Get Set view of Keys from Java TreeMap example
      • Iterate through the values of Java TreeMap example
      • Simple Java TreeMap example
      • Checked vs Unchecked Exceptions in Java
      • Creating user defined exceptions in Java
      • Exception Handling : Throws clause in Java
      • Difference between throw and throws in Java?
      • How to Throw Exceptions in Java
      • What is finally block in java?
    • ►  July (134)
    • ►  June (13)
    • ►  May (2)
    • ►  April (10)
    • ►  March (14)
    • ►  February (18)
    • ►  January (19)
  • ►  2011 (3)
    • ►  December (3)

Categories

  • Home
  • SCJP Objective Questions
  • ArrayList Examples
  • Date & Calendar Examples
  • Files and I/O
  • java.util.zip
  • LinkedList Examples
  • Object Cloning
  • Serialization
  • Wrapper classes
  • Collections Framework
  • Multithreading
  • HashSet Examples
  • TreeSet Examples
  • Utility class - Collections
  • HashMap Examples
  • String Examples
  • TreeMap Examples
  • Exception Handling

Search This Blog

Followers

blog status

Popular Posts

  • Get Synchronized Map from Java HashMap example
    This java example shows how to get a synchronized Map from Java HashMap using synchronizedMap method of Collections class. import java....
  • When should I use an interface instead of an abstract class?
    Abstract class is an incomplete implementation of some concept. This incomplete implementation may be different in different context. Der...
  • Thread.sleep() method in Java with Examples
    Thread. sleep causes the current thread to suspend execution for a specified period. This is an efficient means of making processor time ...
  • Difference Between volatile and synchronized in Java
    Before discussing the difference between volatile and synchronized we have to know a little about java memory model,if one instance or sta...
  • ListIterator in Java Collection Framework with Examples
    public interface ListIterator extends Iterator An iterator for lists that allows the programmer to traverse the list in either directio...
  • Life Cycle of a Thread in Java
    The following diagram shows the  life cycle  of a Java Thread. Thread has following states New Runnable Running Sleeping/Blocked/Wait...
  • Get Head Map from Java TreeMap example
    This Java Example shows how to get the portion of TreeMap whose keys are less than the specified key using headMap method of Java TreeMap ...
  • FileInputStream vs FileReader in Java
    Java has Two types of streams- Byte & Characters . Programs use byte streams to perform input and output of 8-bit bytes. All byte strea...
  • Deep cloning using serialization in Java
    Cloning Cloning means creating a copy of the object( not just the object reference copying as mentioned above). Cloning create...
  • Overriding hashCode() method in Java or Why always override hashcode() if overriding equals()?
    Object class has following five non final methods. 1. clone() 2. equals(Object obj) 3. finalize() 4. hashCode() 5. toString() Every...
Powered by Blogger.