Corrected indentation for continuations
This commit is contained in:
parent
ee3acb502b
commit
2ceab19b42
|
@ -62,8 +62,8 @@ public class MultiDimensionalArray {
|
||||||
|
|
||||||
Integer[] findLengthOfElements(Integer[][] multiDimensionalArray) {
|
Integer[] findLengthOfElements(Integer[][] multiDimensionalArray) {
|
||||||
return Arrays.stream(multiDimensionalArray)
|
return Arrays.stream(multiDimensionalArray)
|
||||||
.map(array -> array.length)
|
.map(array -> array.length)
|
||||||
.toArray(Integer[]::new);
|
.toArray(Integer[]::new);
|
||||||
}
|
}
|
||||||
|
|
||||||
int[][] copy2DArray(int[][] arrayOfArrays) {
|
int[][] copy2DArray(int[][] arrayOfArrays) {
|
||||||
|
@ -77,7 +77,7 @@ public class MultiDimensionalArray {
|
||||||
|
|
||||||
Integer[][] copy2DArray(Integer[][] arrayOfArrays) {
|
Integer[][] copy2DArray(Integer[][] arrayOfArrays) {
|
||||||
return Arrays.stream(arrayOfArrays)
|
return Arrays.stream(arrayOfArrays)
|
||||||
.map(array -> Arrays.copyOf(array, array.length))
|
.map(array -> Arrays.copyOf(array, array.length))
|
||||||
.toArray(Integer[][]::new);
|
.toArray(Integer[][]::new);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue