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.
2 parents 91d5393 + fbf24fa commit 2adccbdCopy full SHA for 2adccbd
src/com/jwetherell/algorithms/data_structures/List.java
@@ -67,8 +67,8 @@ public boolean remove(T value) {
67
for (int i = 0; i < size; i++) {
68
T obj = array[i];
69
if (obj.equals(value)) {
70
- if (remove(i)!=null) return true;
71
- return false;
+ remove(i);
+ return true;
72
}
73
74
return false;
0 commit comments