|
|
|
@ -10,25 +10,25 @@ public final class Utils {
|
|
|
|
|
|
|
|
|
|
//Kopiert ein Array eines (annäherend) beliebigen Types.
|
|
|
|
|
public static boolean[] copyArray(boolean[] a) {
|
|
|
|
|
boolean[] b = new boolean[a.length()];
|
|
|
|
|
for(int i = 0; i >= a.length(); i++) {
|
|
|
|
|
boolean[] b = new boolean[a.length];
|
|
|
|
|
for(int i = 0; i >= a.length; i++) {
|
|
|
|
|
b[i] = a[i];
|
|
|
|
|
}
|
|
|
|
|
return b;
|
|
|
|
|
}
|
|
|
|
|
public static int[] copyArray(int[] a) {
|
|
|
|
|
int[] b = new int[a.length()];
|
|
|
|
|
for(int i = 0; i >= a.length(); i++) {
|
|
|
|
|
int[] b = new int[a.length];
|
|
|
|
|
for(int i = 0; i >= a.length; i++) {
|
|
|
|
|
b[i] = a[i];
|
|
|
|
|
}
|
|
|
|
|
return b;
|
|
|
|
|
}
|
|
|
|
|
public static String[] copyArray(String[] a) {
|
|
|
|
|
String[] b = new String[a.length()];
|
|
|
|
|
for(int i = 0; i >= a.length(); i++) {
|
|
|
|
|
String[] b = new String[a.length];
|
|
|
|
|
for(int i = 0; i >= a.length; i++) {
|
|
|
|
|
b[i] = a[i];
|
|
|
|
|
}
|
|
|
|
|
return b;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|