title: How to print a two dimensional array?
body: <p>I have a [20][20] two dimensional array that I've manipulated. In a few words I am doing a turtle project with user inputting instructions like pen up = 0 and pen down = 1. When the pen is down the individual array location, for instance [3][4] is marked with a &quot;1&quot;.</p>
  <p>The last step of my program is to print out the 20/20 array. I can't figure out how to print it and I need to replace the &quot;1&quot; with an &quot;X&quot;. The print command is actually a method inside a class that a parent program will call. I know I have to use a loop.</p>
  <pre><code>public void printGrid() {
      System.out.println...
  }
  </code></pre>