title: Insert value to 2d array
body: <p>I have a loop to loop through 0-200 and if the number matches the number in the list. I will put it inside the freq[][]. However, I'm having problem into putting the numbers I found into the freq[][] considering that it needs to be  in the size of [10][20].</p>
  
  <pre><code>public static void example(List&lt;Integer&gt; numbers, List&lt;Integer&gt; elements, int[][] list){
  
          int index = 0;
          int[][] freq = new int[10][20];
          for (int i = 0; i &lt; 200; i++){
              for (int x = 0; x &lt; list.length; x++){
                  for (int y = 0; y &lt; list[x].length; y++){
                      if (list[x][y] == i){
                          freq[][index] = i;
                      }
                  }
              }
          }
      }
  </code></pre>