Apache POI Word Paragraph

To create a paragraph in MS word file, Apache POI provides XWPFParagraph class. This class uses XWPFRun to setText() method for the paragraph.

Lets see an example in which we are creating and writing paragraph into a word file.

Apache POI Word Paragraph Example

Output:


Apache POI Word Paragraph




Latest Courses