title: fill an array from a specified starting point increasing by n increments
body: <p>So let's say I want to count from "start" to "end" and increasing by 1 where start = 3 and end = 6. so the output should be: {3, 4, 5, 6}</p>
  
  <p>here's my code so far</p>
  
  <pre><code>int[] myarray = new int[end - start + 1];
  int start = 3;
  int end = 6;
  for (int a = 0; a &lt; myarray.length; a++) {
      for (int i = start; start &lt;= end; i++) {
          myarray[a] = i; 
      }
  } 
  </code></pre>
  
  <p>but the problem is that the nested for loop does not exit so it keeps on overwriting itself and I'm not sure how to make it 'exit'. any ideas? Thanks in advance.</p>