How to create a sequence of numbers in java
<p>I want to create a sequence of numbers in Java like this :</p>
<pre><code>1234957203969304597600234960702349100903450234847456282934857697900389262454869346
</code></pre>
<p>I want to create 1000 numbers in the sequence.</p>
<p>How can I do it?</p>
<p>I tried to do like this :</p>
<pre><code>String seq = null;
for (int i = 0; i &lt; 1000; i++) {
    seq = String.format(&quot;%d&quot;,i);
}
System.out.println(seq);
</code></pre>
<p>It does not work, it prints out:</p>
<blockquote>
<p>999</p>
</blockquote>