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 c42708b commit fbf24faCopy full SHA for fbf24fa
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