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 2548602 commit a6ce0c9Copy full SHA for a6ce0c9
lesson_11/arrays_java/arrays_app/src/main/java/com/codedifferently/lesson11/Lesson11.java
@@ -23,7 +23,7 @@ public int[] getConcatenation(int[] nums) {
23
* https://leetcode.com/problems/find-words-containing-character/
24
*/
25
public List<Integer> findWordsContaining(String[] words, char x) {
26
- List<Integer> result = new ArrayList<>();
+ var result = new ArrayList<Integer>();
27
for (int i = 0; i < words.length; i++) {
28
if (words[i].indexOf(x) != -1) {
29
result.add(i);
0 commit comments