title: How do I create a Cucumber DataTable?
body: <p>I want to manually set up a Cucumber DataTable using Java (instead of Gherkin).</p>
  
  <p>In Gherkin, my table would look like this:</p>
  
  <pre><code>| h1 | h2 |
  | v1 | v2 |
  </code></pre>
  
  <p>My Java so far looks like this:</p>
  
  <pre><code>List&lt;String&gt; raw = Arrays.asList( "v1", "v2");
  DataTable dataTable = DataTable.create(raw, Locale.getDefault(), "h1", "h2");
  </code></pre>
  
  <p>What I get back is a DataTable with headers but no contents. It's also longer than expected:</p>
  
  <pre><code>  | h1| h2 |
    |   |    |
    |   |    |
  </code></pre>
  
  <p>I'm sure the solution must be fairly simple, but I'm a bit at a loss right now. What do I need to do to get my table?</p>