title: How do I select the last row of a MySQL table with Java?
body: <p>I am writing something for my friend that will involve storing some data in a database with a primary key which is an integer which will increment. For example:</p>
  
  <pre><code>id    name      Age
  
  1     James     15
  2     Max       24
  3     Jordan    61
  </code></pre>
  
  <p>How would I retrieve the integer under the id column in the last row? And this would be with Java. Thanks.</p>