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) {
2626
2727 public static List <Integer > findWordsContaining (String [] words , char x ) {
2828 // Create an arraylist named arrList
29- ArrayList <Integer > arrList = new ArrayList <>();
29+ ArrayList <Integer > arrList = new ArrayList <>();
3030
3131 // Runs a loop that will iterate through each character in the word.
3232 for (int i = 0 ; i < words .length ; i ++) {
3333 // 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 ) {
3535 // Stores the index if it is true that it has that character
36- arrList .add (i );
36+ arrList .add (i );
3737 }
3838 }
3939 return arrList ;
You can’t perform that action at this time.
0 commit comments