import java.awt.event.*;
import java.awt.*;
class Lotto extends Frame implements ActionListener
{
TextField t1,t2,t3,t4,t5,t6;
Button b1;
Label l1;
int[] lottozahl;
int eins,zwei,drei,vier,fuenf,sechs;
int hilfe=0;
Lotto()
{
setTitle(\"Lotto - Ziehung\");
setSize(300,300);
setLayout(new FlowLayout());
setBackground(Color.blue);
addWindowListener(new WindowAdapter()
{
public void windowClosing(WindowEvent e)
{
System.exit(0);
dispose();}});
l1 = new Label(\"Hier ist die Ziehung der 6 Lottozahlen!\",Font.BOLD);
add(l1);
t1 = new TextField(\"\",20);
add(t1);
t2 = new TextField(\"\",20);
add(t2);
t3 = new TextField(\"\",20);
add(t3);
t4 = new TextField(\"\",20);
add(t4);
t5 = new TextField(\"\",20);
add(t5);
t6 = new TextField(\"\",20);
add(t6);
b1 = new Button(\" Ziehung für heute \");
b1.addActionListener(this);
add(b1);
setVisible(true);
}
public void actionPerformed(ActionEvent e)
{
if(e.getSource() == b1) { ziehung();}
}
void ziehung()
{
lottozahl = new int[6];
int schalter;
do{
schalter = 0;
for(int i=0;i=0;j--)
{
if (lottozahl[i] == lottozahl[j]) schalter = 1;
}
}
for(int i=0;i |