title: User specified 2d array element values
body: <pre><code>        for (int i = 0; i &lt; height; i++) {
              for (int j = 0; j &lt; width; j++) {
                  while (treasures &gt;= 0) {
                      mapArray[i][j] = rnd.nextInt(2);
                      treasures -= 1;
                  }
              }
          }
  </code></pre>
  
  <p>The user specifies the array's height and width, along with how many "treasures" this array contains. The code should cycle through all of the array's elements, giving them a value of either 0 or 1 ( until the number of treasures entered by the user reaches 0 ).</p>
  
  <p>Treasure indication is 1.</p>
  
  <p>Right now the for loops only target the first ( [0] [0] ) element.</p>