Skip to content

Commit b0ee622

Browse files
committed
Fix stub exception message in two-bucket
The stub exception message for getResult was incorrectly asking students to implement the constructor rather than the getResult method. This commit changes the stub messages to use the more recent format. [no important files changed]
1 parent c2165cb commit b0ee622

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
class TwoBucket {
22

33
TwoBucket(int bucketOneCap, int bucketTwoCap, int desiredLiters, String startBucket) {
4-
throw new UnsupportedOperationException("Please implement the TwoBucket(int, int, int, String) constructor.");
4+
throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
55
}
66

77
Result getResult() {
8-
throw new UnsupportedOperationException("Please implement the TwoBucket(int, int, int, String) constructor.");
8+
throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
99
}
1010

1111
}

0 commit comments

Comments
 (0)