Skip to content

Commit a20f059

Browse files
Add stubs to allergies exercise (exercism#2345)
1 parent 9414ddf commit a20f059

1 file changed

Lines changed: 12 additions & 7 deletions

File tree

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1-
/*
1+
import java.util.List;
22

3-
Since this exercise has a difficulty of > 4 it doesn't come
4-
with any starter implementation.
5-
This is so that you get to practice creating classes and methods
6-
which is an important part of programming in Java.
3+
class Allergies {
4+
Allergies(int score) {
5+
throw new UnsupportedOperationException("Please implement the Allergies constructor");
6+
}
77

8-
Please remove this comment when submitting your solution.
8+
boolean isAllergicTo(Allergen allergen) {
9+
throw new UnsupportedOperationException("Please implement the isAllergicTo method");
10+
}
911

10-
*/
12+
List<Allergen> getList() {
13+
throw new UnsupportedOperationException("Please implement the getList method");
14+
}
15+
}

0 commit comments

Comments
 (0)