title: shortest way of filling an array with 1,2...n
body: <p>Is there anything as quick as this in java? ( quick in coding) </p>
  
  <pre><code>int [] a = {1..99};
  </code></pre>
  
  <p>or I have to go for this:</p>
  
  <pre><code>int [] a=new int[100];
  for (int i=0;i &lt;100;++i){
  a[i]=i;
  }
  </code></pre>