title: Incrementing a single parameter in an array of objects
body: <p>I am trying to get the hour component of an object, which is an int, and increment it by 1. So 5 would be 6. I tried to do clocks[i].getHour() = clocks[i].getHour()+1, but this was not allowed and would say I need a variable on the left. </p>
  
  <pre><code>public void daylightSavingsTime(Clock[] clocks) {
      for(int i = 0; i &lt;clocks.length; i++) {
          int a = clocks[i].getHour()+1;
  
      }
  </code></pre>