title: Read the Tables data from the Docx files
body: <p>I am trying to read the Word Docx file and its reading fine with apache POI, but now I have a problem in reading the Docx file which has the table inside the file
  Kinldy anyone please help me how to read the data from the tables inside the Document.
  Kinldy find the screenshot of the document which I want to read with java.
  <a href="https://i.stack.imgur.com/CoYVb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CoYVb.png" alt="enter image description here"></a></p>
  
  <p><strong><em>Have to retrieve the Highlighted data from the doc.</em></strong></p>
  
  <pre><code>public static void readDocxFile(String fileName){
          try {
              File file = new File(fileName);
              FileInputStream fis = new FileInputStream(file.getAbsolutePath());
              XWPFDocument document = new XWPFDocument(fis);
  
              List&lt;XWPFParagraph&gt; paragraphs = document.getParagraphs();
  
              System.out.println("Total Number of Paragraphs:: "+paragraphs.size());
              for (int i = 0; i &lt; paragraphs.size(); i++) {
                  System.out.println(paragraphs.get(i).getParagraphText());
              }
              fis.close();
  
          } catch (Exception e) {
              e.printStackTrace();
          }
      }
  </code></pre>
  
  <p>This was the Method I was using for returning the data in the pages, but not getting the data marked in yellow, but only those data are getting in output which are not mentioned inside the table in word document.</p>