title: Printing rectangle in java (there is hole in center)
body: <p>I want create a rectangle which has hole in the middle. How can I import wallThick :) I define width, height, wallThick but I just write a rectangle. I can't press any hole. Could you help me please... Thanks for all...</p>
  
  <pre><code>    if (width &lt;= 0 || height &lt;= 0 || wallThick &lt;= 0)
      {
        System.out.println("Invalid value! Please enter positive integer.");
      }else {
        for ( y = 1; y &lt;= height; y++)
        {
          for(x = 1; x &lt;= width; x++)
          {
            System.out.print("*");
  
          }
          System.out.println();
        }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/NUfJF.png" rel="nofollow noreferrer">what I want to do</a></p>