//09.01.2007
import java.io.*;
public class TottoLotto
{
public static void main (String argv []) throws IOException
{
//Dimensionierung
int zaehler1, zaehler2, tippanzahl;
int lottotipp [] [];
String str;
BufferedReader eingabe = new BufferedReader(new InputStreamReader (System.in));
//Anlegen des mehrdimensionalen Arrays mit bestimmter Größe
System.out.print("Herzlich Willkommen beim Online-Lotto!");
System.out.print("");
System.out.println("Bitte geben Sie die Anzahl der Spieler an die einen Tipp abgeben moechten:");
str = eingabe.readLine ();
tippanzahl = Integer.parseInt (str);
lottotipp = new int [tippanzahl] [6];
for (zaehler1 = 1; zaehler1 <= tippanzahl; zaehler1++)
{
System.out.print("Eingabe des "+zaehler1+" .ten Tipps!:");
for (zaehler2 = 1; zaehler2 <= 6; zaehler2++)
{
System.out.print("Bitte geben Sie die " +(zaehler2)+ ".te Lottozahl ein!");
str = eingabe.readLine();
lottotipp [zaehler1-1] [zaehler2-1] = Integer.parseInt (str);
System.out.println();
}
}
Random randomizer = new Random();
int r1 = randomizer.nextInt(49);
while(r1 == 0){
r1 = randomizer.nextInt(49);
}
}
}
Also soweit bin ich gekommen...eure Antwort hab ich erstmal nur eingefügt, weil ich gleich mal den Fehler "cannot find symbol class Random"!! Ja und des sagt mir net grad viel!!
Wie mach ich das nun genau das er mir das ausgibt also diese 6 Zufallszahlen?