 <p>i would think there would be a java equivalent to something like the following php</p> <pre><code>$my_numbers = range(0,100); echo implode($my_numbers, ' '); </code></pre> <p>this avoids recursion, loops, control statements, etc.</p>