Commit 7d402b8d authored by sam.pople's avatar sam.pople

Finished (Again)

parent 309710d8
No preview for this file type
No preview for this file type
...@@ -45,10 +45,8 @@ public class Rectangle extends Shape { ...@@ -45,10 +45,8 @@ public class Rectangle extends Shape {
for (int loop1 = 0; loop1 < height; loop1++){ for (int loop1 = 0; loop1 < height; loop1++){
System.out.print("|" + new String(new char[width]).replace("\0", " ") + "|" + "\n"); System.out.print("|" + new String(new char[width]).replace("\0", " ") + "|" + "\n");
} }
System.out.print(" " + new String(new char[width]).replace("\0", "-") + "\n"); System.out.print(" " + new String(new char[width]).replace("\0", "-") + "\n");
} }
@Override @Override
public float area() { public float area() {
float area = this.getWidth() * this.getHeight(); float area = this.getWidth() * this.getHeight();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment