XML parsing using SAX parser in java

In java we have multiple ways to parse XML. We will see steps for XML parsing using SAX parser in java in this post. What are SAX parsers? SAX parsers are event based parsers. SAX parsers parse the

Read More →

XML parsing using DOM parser in java

In java we have multiple ways to parse XML. We will see steps for XML parsing using DOM parser in java in this post. What are DOM parsers? DOM parsers are parsers that load the complete XML into me

Read More →

Sorting of HashSet in Java Examples

HashSet are unsorted collections. Sorting of HashSet can be done in multiple ways. In this post we will see examples on sorting of HashSet using ArrayList and TreeSet. Example: Sorting of HashSet i

Read More →

LinkedList push and pop methods

Adding and removing element in LinkedList can also be done by push and pop methods. 1. void  push(E e) – Adds an element into the List as the first element 2. [crayon-68e9d

Read More →

LinkedList poll method examples

LinkedList provides 3 methods to get elements and remove them from the list.

You can get the java doc for this methods Here lets see the LinkedList poll method exam

Read More →

LinkedList peek methods example

LinkedList provides 3 methods to get elements without removing it apart from the conventional get(index)

You can get the java doc for this methods Here lets see the

Read More →

LinkedList descendingIterator example

LinkedList descendingIterator() method returns an iterator over the elements in reverse order. Method:

Lets see LinkedList descendingIterator example. LinkedList de

Read More →

LinkedList ListIterator Java example

In this post we will see various LinkedList ListIterator Java examples. ListIterator in LinkedList can be used to iterate a list from a specified position. Method :

Read More →

How to Iterate LinkedList in java

In this post we will see how to iterate LinkedList in java. We can iterate LinkedList either using 1. For loop 2. Iterator. 3. ListIterator 4. While loop We will see examples for all these methods.

Read More →