Update Utils.java

Fehlerverbesserung
pull/16/head
Felix Stupp 9 years ago
parent 87ea4cb1d3
commit 9dceb0ea29

@ -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;
}
}
}

Loading…
Cancel
Save