title: Draw the array referred by the reference u
body: <p>Draw the array referred by the reference <code>u</code>. I have drawn it as it shows on the picture link below. In order to fill the array <code>u</code> with values so i need some help with.
  With the pincel and paper I got this values <code>u[0] = 3 , u[1] = 6 and u[2] = 10</code> which I'm not sure are correct.
  Please if you answer this question do not only suggest value explain it step by step through the loop. </p>
  
  <pre><code>int[][] b = { {1, 2, 3},
                {2, 3, 4},
                {3, 4, 5} };
  
  int[] u = new int[b[0].length];
  
  for (int i = 0; i &lt; u.length; i++){   
           u[i] = b[0][i];
      for (int j = 1; j &lt; b.length; j++)
           u[i] += b[j][i];
      }
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/9i9Zl.png" rel="nofollow noreferrer">The array drwan</a></p>