File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
class Solution {
2+
public List<Integer> findWordsContaining(String[] words, char x) {
3+
return IntStream.range(0, words.length)
4+
.filter(i -> words[i].indexOf(x) != -1)
5+
.boxed()
6+
.collect(Collectors.toList());
7+
}
8+
}

0 commit comments

Comments
 (0)