[code=Java]ArrayList<Integer> zufallszahlenList = new ArrayList<>(6);
zufallszahlenList.add(i1);
zufallszahlenList.add(i2);
zufallszahlenList.add(i3);
zufallszahlenList.add(i4);
zufallszahlenList.add(i5);
zufallszahlenList.add(i6);
int[] zahlen = new int[6];
for (int tempInt : zufallszahlenList) {
zahlen[tempInt ]++;
}
for (int tempInt : zahlen) {
if (tempInt >=3) {
System.out.prinltn(i1+""+i2...........+""+tempInt +"mind 3 gleiche")
}
else {System.out.prinltn(i1+""+i2...........+""+tempInt +"keine 3 gleiche")
}
[/code]
hab ja system.out.println gemacht umzu sehen was es überhaupt macht aber da kam iwie wirres zeug :bahnhof: