Skip to content

Commit

Permalink
CircularList: remove explicit throws
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandreDubray committed Oct 1, 2020
1 parent 8a9c919 commit 0fffb96
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CircularLL/public/CircularLinkedList.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public void enqueue(Item item) {
* less than 0 or greater to the size
* of the list
*/
public Item remove(int index) throws IndexOutOfBoundsException {
public Item remove(int index) {
// TODO
return null;
}
Expand Down
2 changes: 1 addition & 1 deletion CircularLL/task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ context: |-
* less than 0 or greater or equal to the size
* of the list
*/
public Item remove(int index) throws IndexOutOfBoundsException {
public Item remove(int index) {
// TODO
}
Expand Down
2 changes: 1 addition & 1 deletion CircularLL/templates/CircularLinkedList.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public void enqueue(Item item) {
* less than 0 or greater to the size
* of the list
*/
public Item remove(int index) throws IndexOutOfBoundsException {
public Item remove(int index) {
@@student_remove@@
}

Expand Down

0 comments on commit 0fffb96

Please sign in to comment.