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 da1c684 commit 022e940Copy full SHA for 022e940
lesson_11/arrays_java/arrays_app/src/main/java/com/codedifferently/lesson11/Lesson11.java
@@ -22,10 +22,11 @@ public int[] getConcatenation(int[] nums) {
22
*/
23
public List<Integer> findWordsContaining(String[] words, char x) {
24
List<Integer> output = new ArrayList();
25
- for (int i = 0; i < words.length; i++) {
26
- if (words[i].contains(String.valueOf(x))) {
27
- output.add(i);
28
- }
29
- } return output;
+ for (int i = 0; i < words.length; i++) {
+ if (words[i].contains(String.valueOf(x))) {
+ output.add(i);
+ }
30
}
+ return output;
31
32
+}
0 commit comments