Challenge- Create a Box House

Last updated

Last updated
+------------------------+
I I
I * I
I/ I
I ______ | |
I | | ___| |
I | | | | |
+------------------------+public static void printHouse(wallHeight, wallLength) {
for (int i = 0; i < wallheight + 2; i++) {
for (int j = 0; j < wallLength; j++) }
if (j == 0 || j == wallLength - 1) {
System.out.print("I");
} else {
System.out.println(" ");
}
}
}
}