title: Console output of nth element array
body: <p>i've got an array with n element and i'm trying to set the values ​​my array, so that each element has its value as Positon.</p>
  
  <p>I.e. the first element at position 0 is 0, the second element is at position 1 to 1, etc., up to the n-th element at position n-1 with the value of n-1.</p>
  
  <p>And finally i will give the contents of my array on the console.</p>
  
  <p>Well i already set the values correct i think, but i can't show on the console.For example how i can show the the position "n-1" has the value "n-1" ?</p>
  
  <p>Here what i did so far:</p>
  
  <pre><code>  public void exercise1(Integer n){
  
     int[] arrayA = new int[n];
  
     int counter;
  
      for(counter=0; counter&lt;arrayA.length; counter++){
  
                arrayA[counter]=counter;
                           }
      }   
  </code></pre>
  
  <p>Thanks in advance:)</p>