title: Printing an ArrayList of Objects as a table with non-fixed size in Java
body: <p>I have a list of objects, and I need to print it as a table where first row is the header and each row after is one object, and each column in the row represents one attribute. And I need the table to adjust its size by the size of the text in each field. For example, I need something like this:</p>
  
  <pre><code>    =============================================
      | First Name  |   Last Name    |     Age    |
      =============================================
      |Person's name|Person's surname|Person's age|
  </code></pre>
  
  <p>to change size if the text in the Field "First Name" gets bigger, like this:</p>
  
  <pre><code>    =======================================================
      |       First Name      |   Last Name    |     Age    |
      =======================================================
      |Person's very long name|Person's surname|Person's age|
  </code></pre>
  
  <p>Is it possible to manage this and how? </p>