diff --git a/src/lab7_Classe_et_tableaux/Rectangle.java b/src/lab7_Classe_et_tableaux/Rectangle.java index 349f4a5..50c0824 100644 --- a/src/lab7_Classe_et_tableaux/Rectangle.java +++ b/src/lab7_Classe_et_tableaux/Rectangle.java @@ -18,7 +18,8 @@ public class Rectangle { } public String toString(){ - String s = "Rectangle size : "; + String s = ""; + s += "Rectangle size : "; s += this.width; s += " x "; s += this.height; diff --git a/src/lab7_Classe_et_tableaux/Task1Runner.java b/src/lab7_Classe_et_tableaux/Task1Runner.java index faa71dc..57a2e49 100644 --- a/src/lab7_Classe_et_tableaux/Task1Runner.java +++ b/src/lab7_Classe_et_tableaux/Task1Runner.java @@ -5,7 +5,7 @@ import java.awt.Color; public class Task1Runner { public static void main(String[] args) { - Rectangle r1 = new Rectangle (10, 5); + Rectangle r1 = new Rectangle(10, 5); Rectangle r2 = new Rectangle (3, 4); Rectangle r3 = new Rectangle (100, 100);