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...
if (width <= 0 || height <= 0 || wallThick <= 0)
{
System.out.println("Invalid value! Please enter positive integer.");
}else {
for ( y = 1; y <= height; y++)
{
for(x = 1; x <= width; x++)
{
System.out.print("*");
}
System.out.println();
}