Skip to content

Commit e38798c

Browse files
committed
Refactor: Cleaned up code formatting in Lesson11.java for merge confilcts on github.
1 parent 71dd5aa commit e38798c

File tree

1 file changed

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

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)