[CODE lang="java" title="etwas ist noch falsch
"]Scanner sc=new Scanner(System.in);
System.out.println("auswahl?");
int auswahl=sc.nextInt();
String[] worter=new String [100];
int zahl=0;
String meldung="mehr als 100";
String result = " ";
do {
menue();
switch(auswahl){
case 1: {
System.out.println("wort1 ?");
String wort1= sc.next();
System.out.println("wort2 ?");
String wort2= sc.next();
worter[zahl]=wort1+""+wort2;
zahl++;
if(zahl==100) System.out.print(meldung);
else if(zahl<100)
{ for (int i=0;i<zahl;i++) {
result = worter
;
}
System.out.println(result);
}
break;
} [/CODE]