Update Utils.java

Fehlerverbesserung
master
Felix Stupp 8 years ago
parent 87ea4cb1d3
commit 9dceb0ea29

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

Loading…
Cancel
Save