LinkedHashMap is part of the java.util package and it extends the HashMap, so it has all the properties of HashMap. LinkedHashMap maintains the order of insertion of the elements, hence when we ite
TreeMap example in Java
TreeMap is a part of the java.util package and implements the Map interface. TreeMap stores the Key-Value pairs in a sorted order of the Keys. TreeMap is a Red-Black tree based NavigableMap impleme
Read Word Docx File Using POI
To read word docx file using POI we use the XWPFWordExtractor class. This class comes from the package org.apache.poi.xwpf.extractor and has a method getText() that returns all the content of the f
Add Table to Word Doc using POI
In many cases we need to deal with tables in the Word Document. Apache POI makes it simple to add table to the Word Document. Lets see the way to add table to word doc using POI. Classes / Interfac
Add Border to Paragraph in Word Using POI
We have already see the creation of Word file and adding Paragraph to it using Apache POI. Now we will see how to add Border to Paragraph in Word using POI. Classes / Interfaces Used XWPFDocument [
Add Paragraph to Word Doc Using POI
In the last post we saw how to Create Word Doc file in Java Using POI. Now in this post we will see how to add Paragraph to Word doc using POI. Classes / Interfaces Used XWPFDocument [crayon-68e97a
Create Word Doc file in Java Using POI
Apache POI is very useful for working on with the MS office files like Word, Excel etc. In the post we will how to create word doc file in java using POI. Setup for Apache POI [crayon-68e97a3f35bb9
Add Formula to Excel using Apache POI
Excel file are also used to perform various stats in which formula plays are very important role. So when youa re creating a excel file using the POI library and you want to add formula’s to
Modify XML file in Java using DOM parser
In one of the earlier post we saw How to parse an XML using DOM parser. In this post we will see how to modify XML file in Java using DOM parser. We can add, update and delete any nodes/elements in
Ignore Null fields in JSON using Jackson
In some of the previous posts we have seen the conversions of JSON to and from Java objects. Java to JSON & JSON to Java. While converting Java class into JSON, we may sometimes have some null