Skip to content

Commit f48aee6

Browse files
committed
chore: spotless Apply
1 parent defc4fc commit f48aee6

File tree

1 file changed

+8
-11
lines changed
  • lesson_11/arrays_java/arrays_app/src/main/java/com/codedifferently/lesson11

1 file changed

+8
-11
lines changed

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

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,14 @@ public int[] getConcatenation(int[] nums) {
2525
* https://leetcode.com/problems/find-words-containing-character/
2626
*/
2727
public List<Integer> findWordsContaining(String[] words, char x) {
28-
List<Integer> result = new ArrayList<>();
28+
List<Integer> result = new ArrayList<>();
2929

30-
for (int i = 0; i < words.length; i++) {
31-
if (words[i].indexOf(x) != -1) {
32-
result.add(i);
33-
}
34-
}
35-
36-
return result;
30+
for (int i = 0; i < words.length; i++) {
31+
if (words[i].indexOf(x) != -1) {
32+
result.add(i);
33+
}
3734
}
38-
}
3935

40-
41-
36+
return result;
37+
}
38+
}

0 commit comments

Comments
 (0)