Skip to content

Commit 0fd0e58

Browse files
author
alexisibrahim
committed
modif des to Strings
1 parent f6241c8 commit 0fd0e58

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/java/org/ecn/medev/Case.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public void setNom(String nom) {
4040
*/
4141
@Override
4242
public String toString() {
43-
return "Case{" +
43+
return "Case{ " +
4444
"nom='" + nom + '\'' +
4545
'}';
4646
}

src/main/java/org/ecn/medev/Gare.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ public Gare(String name){
1919
public String toString() {
2020

2121
if (proprietaire != null) {
22-
return "Gare de" + this.getNom() + " (coût :" + this.getPrix() + ") - " + proprietaire.getNom();
22+
return "Gare de " + this.getNom() + " (coût :" + this.getPrix() + ") - " + proprietaire.getNom();
2323
} else {
24-
return "Gare de" + this.getNom() + " (coût :" + this.getPrix() + ") - ";
24+
return "Gare de" + this.getNom() + " (coût :" + this.getPrix() + ") ";
2525

2626
}
2727
}

0 commit comments

Comments
 (0)