Browse Source

Update ArrayManipulation.java

master
Tristan Füßenich 3 years ago
parent
commit
d91780cbd4
  1. 4
      ArrayManipulation.java

4
ArrayManipulation.java

@ -11,13 +11,13 @@ public class ArrayManipulation {
arr[arr.length - 1 - i] = tmp;
}
return arr;
// Liefert Array
}
public static void main(String[] args) {
int[] arr = {1,2,3,4,5};
System.out.println(Arrays.toString(reverseArray(arr)));
System.out.println("Hello");
}
public static int[] squareEach(int[] arr){
int[] back = new int[arr.length];

Loading…
Cancel
Save