title: Java Array plus 1
body: <p>my java code needs to plus 1 and im getting an error saying </p>
  
  <pre><code>ArrayTask3.java:8: error: incompatible types: int cannot be converted to int[]
       int[] row = intList [i];
  </code></pre>
  
  <p>It should just read my array and then add 1 to each number. could someone please help me get it to work correctly.</p>
  
  <pre><code>class ArrayTask3 {
  
     public static void main(String[] args) {
        int [] intList = {5,20,32,7,9};
        int sum = 0;
  
        for (int i = intList.length-1; i &gt;=0; i--) {
           int[] row = intList [i];
           for (int j = 0; j &lt; row.length; j++) {
              row[j] = row[j] + 1;
           }
  
           System.out.println ("intList [" + i + "]: " + intList [i]);
        }
        for (int counter=0;counter&lt;intList.length;counter++)
           sum = sum + intList[counter];
        System.out.println ("Sum = " + sum);
     }    
  }    
  </code></pre>