title: Merging two arrays together doesn't do anything
body: <pre><code>int[] mergeArrays(int[] a, int[] b){
  
      int[] c = new int [a.length+b.length];
  
      for(int i=0; i &gt; c.length; i++){
          if(a[i] &gt;= b[i]){
              c[i] = a[i];
          }
          else
              c[i] = b[i];
          }
      }
  
      return c;
  
  }
  </code></pre>
  
  <p>This is my method for merging two arrays with different values and combining same values. The output is supposed to be a new array containing all the values from both arrays and combining the same values of said arrays.</p>
  
  <p>When I pass two arrays in this method and print out the returning array, it seems as though the for loop doesn't do anything, as the values stay zeroes. What's the reason that new values aren't assigned to the c[] array going through the for loop?</p>