Skip to content

Commit 33a67e7

Browse files
committed
fix: added gradlew script
1 parent 3c14dba commit 33a67e7

File tree

1 file changed

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

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ public int[] getConcatenation(int[] nums) {
1313
int n = nums.length;
1414
int[] ans = new int[2 * n];
1515

16-
for (int i = 0; i < nums.length; i++){
17-
ans[i] = nums[i];
18-
ans[i + n] = nums[i];
16+
for (int i = 0; i < nums.length; i++) {
17+
ans[i] = nums[i];
18+
ans[i + n] = nums[i];
1919
}
2020
return ans;
2121
}
@@ -29,7 +29,7 @@ public List<Integer> findWordsContaining(String[] words, char x) {
2929

3030
for (int i = 0; i < words.length; i++) {
3131
if (words[i].indexOf(x) != -1) {
32-
indices.add(i);
32+
indices.add(i);
3333
}
3434
}
3535
return indices;

0 commit comments

Comments
 (0)