//Lottoziehung public class Lotto { public static void main(String[] args) { if (args.length != 6) { System.out.println("Bitte genau 6 Argumente angeben!"); return; } int[] tipp = new int[6]; //HAE - wieso muss ich hier 6 angeben? faengt doch bei //zu zaehlen an???????? for (int i = 0; i < 6; i++) { //Argumente aus Programmaufruf einlesen tipp[i] = Integer.parseInt(args[i]); if (tipp[i] < 0 || tipp[i] > 49) { System.out.println("Es sind nur Ganzzahlen zwischen 1 und 49 (eingeschlossen) moeglich!"); return; } boolean gleicheElemente = arrayInhaltVergleichen(6, tipp[]); System.out.print(tipp[i]+" "); } } public static boolean arrayInhaltVergleich (int anzahlElemente, int[] toCompare) { //vergleicht den Inhalt eines Arrays auf gleiche Eintraege toCompare = new int[anzahlElemente]; for (int i = 0; i < anzahlElemente; i++) { } return true; //baaaaa } }