We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c493e4b commit bbf6535Copy full SHA for bbf6535
src/org/launchcode/java/demos/testing/main/Car.java
@@ -47,7 +47,7 @@ public double getGasTankLevel() {
47
}
48
49
public void setGasTankLevel(double gasTankLevel) {
50
- if (gasTankLevel > this.getGasTankLevel()) {
+ if (gasTankLevel > this.getGasTankSize()) {
51
throw new IllegalArgumentException("Can't exceed tank size");
52
53
this.gasTankLevel = gasTankLevel;
0 commit comments