Skip to content

Commit 9123096

Browse files
committed
Update Leetcode 1 / 2 By Dwight Blue
1 parent 88cc7d7 commit 9123096

File tree

1 file changed

+3
-2
lines changed
  • lesson_11/arrays_java/arrays_app/src/main/java/com/codedifferently/lesson11

1 file changed

+3
-2
lines changed

lesson_11/arrays_java/arrays_app/src/main/java/com/codedifferently/lesson11/Lesson11.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,11 @@ public List<Integer> findWordsContaining(String[] words, char x) {
2929
int wordArray = (words.length);
3030

3131
for (int i = 0; i < wordArray; i++) {
32-
if (words[i].contains(Character.toString(x)))
33-
;
32+
if (words[i].contains(Character.toString(x))) {
3433
result.add(i);
3534
}
35+
}
3636
return result;
3737
}
38+
3839
}

0 commit comments

Comments
 (0)