title: Issues with my simple 2D array
body: <p>So I'm trying to make a basic 2d array with rows and columns in Java using netbeans 8.1. </p>
  
  <p>This is my code:</p>
  
  <pre><code>public static void main(String[]args)
  {
      int temp = 5;
      int temp2 = 10;
  
      for(int i = 0; i &lt; temp2; ++i)
      {
          for(int k = 0; k &lt; temp; ++k)
          {
              System.out.println("|_|");
          }
          System.out.println("\n");
      }
  }
  </code></pre>
  
  <p>But for some reason, the output looks like this:</p>
  
  <p><a href="https://i.stack.imgur.com/4Wy3l.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4Wy3l.png" alt="output"></a></p>
  
  <p>Could someone help me understand what is wrong?</p>