File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
lesson_11/arrays_java/arrays_app/src/main/java/com/codedifferently/lesson11 Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -11,10 +11,10 @@ public class Lesson11 {
11
11
*/
12
12
public int [] getConcatenation (int [] nums ) {
13
13
int n = nums .length ;
14
- int ans [] = new int [2 * n ];
15
- for (int i = 0 ; i < n ; i ++){
14
+ int ans [] = new int [2 * n ];
15
+ for (int i = 0 ; i < n ; i ++) {
16
16
ans [i ] = nums [i ];
17
- ans [n + i ] = nums [i ];
17
+ ans [n + i ] = nums [i ];
18
18
}
19
19
return ans ;
20
20
}
@@ -27,13 +27,13 @@ public List<Integer> findWordsContaining(String[] words, char x) {
27
27
List <Integer > list = new ArrayList <>();
28
28
for (int i = 0 ; i < words .length ; i ++) {
29
29
String str = words [i ];
30
- for (int j = 0 ; j < str .length (); j ++) {
31
- if (str .charAt (j ) == x ) {
32
- list .add (i );
33
- break ;
30
+ for (int j = 0 ; j < str .length (); j ++) {
31
+ if (str .charAt (j ) == x ) {
32
+ list .add (i );
33
+ break ;
34
34
}
35
35
}
36
36
}
37
- return list ;
37
+ return list ;
38
38
}
39
39
}
You can’t perform that action at this time.
0 commit comments