title: Adding one to each element in an array using an enhanced for loop in JAVA
body: <p>hey guys i'm having some trouble working this out. The aim is to convert an int array like this <code>{1, 2, 3, 4}</code> by adding one to each element and printing it using an ENHANCED for loop, so it will look like this <code>{2, 3, 4, 5}</code>. This is what i got so far :</p>
  
  <pre><code>    int myArr[] = {1, 2, 3, 4};
  
      for (int i: myArr){
          i =+1;
          myWindow.writeOutLine(i);
      }
  </code></pre>
  
  <p>Pretty sure that is not close, i'm unsure how to store the new value in the array and go to next. </p>