Skip to content

Commit 349f960

Browse files
author
AmiyahJo
committed
fix: instructions provided by github to run a gradle check
used the ./gradlew :arrays_app:spotlessApply as reccommended.
1 parent d6d05f5 commit 349f960

File tree

1 file changed

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

1 file changed

+14
-14
lines changed

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

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,26 @@
66
public class Lesson11 {
77

88
public int[] getConcatenation(int[] nums) {
9-
int n = nums.length;
9+
int n = nums.length;
1010

11-
int[] ans = new int[2 * n];
11+
int[] ans = new int[2 * n];
1212

13-
for(int i = 0; i < n; i++){
14-
ans[i] = nums[i];
15-
ans[i + n] = nums[i];
16-
}
17-
18-
return ans;
13+
for (int i = 0; i < n; i++) {
14+
ans[i] = nums[i];
15+
ans[i + n] = nums[i];
16+
}
17+
18+
return ans;
1919
}
2020

2121
public List<Integer> findWordsContaining(String[] words, char x) {
2222
List<Integer> indices = new ArrayList<>();
2323

24-
for (int i = 0; i < words.length; i++){
25-
if(words[i].indexOf(x) >= 0){
26-
indices.add(i);
27-
}
28-
}
29-
return indices;
24+
for (int i = 0; i < words.length; i++) {
25+
if (words[i].indexOf(x) >= 0) {
26+
indices.add(i);
27+
}
28+
}
29+
return indices;
3030
}
3131
}

0 commit comments

Comments
 (0)