Skip to content

Commit c8dbfbb

Browse files
Update part5 4-Objects-and-references
In the assignment Comparing Appartments, the english version of the last part, "More expensive". Had the comments for the "correct output" reversed. I flipped the order, and it is now correct.
1 parent 5fe45ac commit c8dbfbb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

data/part-5/4-objects-and-references.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2469,8 +2469,8 @@ Apartment manhattanStudioApt = new Apartment(1, 16, 5500);
24692469
Apartment atlantaTwoBedroomApt = new Apartment(2, 38, 4200);
24702470
Apartment bangorThreeBedroomApt = new Apartment(3, 78, 2500);
24712471

2472-
System.out.println(manhattanStudioApt.moreExpensiveThan(atlantaTwoBedroomApt)); // true
2473-
System.out.println(bangorThreeBedroomApt.moreExpensiveThan(atlantaTwoBedroomApt)); // false
2472+
System.out.println(manhattanStudioApt.moreExpensiveThan(atlantaTwoBedroomApt)); // false
2473+
System.out.println(bangorThreeBedroomApt.moreExpensiveThan(atlantaTwoBedroomApt)); // true
24742474
```
24752475

24762476
</programming-exercise>

0 commit comments

Comments
 (0)