title: Make a two-dimensional 10x2 array, each element set to the string "x"
body: <p>As the title suggests, I want to create an array that outputs the following but I don't have an idea on how to do this:</p>
  <pre><code>x x
  x x
  x x
  x x
  x x
  x x
  x x
  x x
  x x
  x x
  </code></pre>
  <p>And here's the code I started working on to do this:</p>
  <pre class="lang-java prettyprint-override"><code>public static void designs() {
      String[][] canvas = new String[10][10];
      for (int i = 0; i &lt; canvas.length; i++) {
          for (int j = 0; j &lt; canvas[0].length; j++) {
              if (i == j) {
                  canvas[j][i] = &quot;x&quot;;
              } else {
                  canvas[j][i] = &quot;x&quot;;
              }
          }
      }
      for (int a = 0; a &lt; canvas.length; a++) {
          for (int b = 0; b &lt; canvas[0].length; b++) {
              System.out.print(canvas[a][b] + &quot;\t&quot;);
          }
          System.out.println(&quot;\n&quot;);
      }
  }
  </code></pre>