Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2adccbd

Browse files
Merge pull request #72 from ParkChangHan/master
Remove obsolete code
2 parents 91d5393 + fbf24fa commit 2adccbd

File tree

1 file changed

+2
-2
lines changed
  • src/com/jwetherell/algorithms/data_structures

1 file changed

+2
-2
lines changed

‎src/com/jwetherell/algorithms/data_structures/List.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ public boolean remove(T value) {
6767
for (int i = 0; i < size; i++) {
6868
T obj = array[i];
6969
if (obj.equals(value)) {
70-
if (remove(i)!=null) returntrue;
71-
return false;
70+
remove(i);
71+
return true;
7272
}
7373
}
7474
return false;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /