How to find out if for loop iteration is the last one
<p>I have following loop</p>

<pre><code>for(int i=0;i&lt;1000;i++) { }
</code></pre>

<p>how do i find out if current iteration is the last iteration in java. thanks. Value I am getting dynamically.</p>
