File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
lesson_11/arrays_java/arrays_app/src/main/java/com/codedifferently/lesson11 Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -26,14 +26,14 @@ public static int[] getConcatenation(int[] nums) {
26
26
27
27
public static List <Integer > findWordsContaining (String [] words , char x ) {
28
28
// Create an arraylist named arrList
29
- ArrayList <Integer > arrList = new ArrayList <>();
29
+ ArrayList <Integer > arrList = new ArrayList <>();
30
30
31
31
// Runs a loop that will iterate through each character in the word.
32
32
for (int i = 0 ; i < words .length ; i ++) {
33
33
// will check to see if 'x' exists inside of the word
34
- if (words [i ].indexOf (x ) != -1 ) {
34
+ if (words [i ].indexOf (x ) != -1 ) {
35
35
// Stores the index if it is true that it has that character
36
- arrList .add (i );
36
+ arrList .add (i );
37
37
}
38
38
}
39
39
return arrList ;
You can’t perform that action at this time.
0 commit comments