title: Extract content in the cell of a table in a Word document using POI Java
body: <p>I have been using Java and POI to extract data from Word documents (docx). Basically I want to extract data contained in a two column table. I want the program to distinguish between the left and right columns and store the various values in an array the thing is that it extracts the text row by row:</p>
  
  <pre><code>table.getText()
  </code></pre>
  
  <p>I used this method but it doesn't distinguish between the cells. It just grab all the text from a  row.</p>
  
  <p>The code I used can be found <a href="http://www.concretepage.com/apache-api/apache-poi-xwpf-read-ms-word-docx-header-footer-paragraph-table-example" rel="nofollow noreferrer">here</a></p>
  
  <p>I couldn't find a method to extract the text in each cell</p>