Apache POI Word Table
To create table in Word document, we can use XWPFTable class located into org.apache.poi.xwpf.usermodel.XWPFTable package. Apache POI added one more class XWPFTableRow for creating row.
See, below we have created a table in word document using Java program.
Apache POI XWPFTable Methods
Following are the commonly used methods to handle table in the document.
Apache POI Word Table Example