Consecutive number generator program on each execution
<p>I would like to write a program that generates the consecutive number starting from 1 every time it is <em>executed</em>. </p>

<p>It will print 1 at the first execution, then it will print 2 at the next execution, and so on.</p>

<p>What is the shortest way to do this in Java?</p>
