title: Increment the value of a receipt number
body: <p>In java, say I have a program which checks for the max value in database and increments it by 1 to create my receipt number.</p>
  
  <p>How could I start my first number as 001 and increment it accordingly.</p>
  
  <p>Thus </p>
  
  <pre><code>int x = rs.get( sql statement for maximum value). 
  </code></pre>
  
  <p>Say <code>x = 001</code></p>
  
  <p>New number to be inserted back should be 002.</p>