es liegt nicht an den konvertierungen. hier der neue quelltext(nicht grade
sch�ner zu lesen ich wei�):
public String getAnswer(HashSet wishwords, int cnt){
int count=cnt; //cnt is needed for the standard answers
Iterator it=wishwords.iterator();
while(it.hasNext() and (aday==0 or aroom==0)){
String wishword=(String)it.next(); //get the next word
for(day=1; day<366; day++){
if(answers[day-1][0]==wishword){aday=day;}
day++;
}
switch(wishword){
case "single":
case "1":
case "one":
aroom=1;
break;
case "double":
case "2":
case "two":
aroom=2;
break;
}
}
if(aday!=0 and aroom!=0){
if(Integer.parseInt(answers[aday-1][aroom])>0){
answers[aday-1][aroom]=Integer.toString(Integer.parseInt(answers[aday-1][aroom])-1);
return "We could book you a room for "+aroom+" persons on
"+answers[aday-1][0];
}
else {return "Unfortunately all rooms on "+answers[aday-1][0]+"
for
"+aroom+" persons are already booked";}
}
return chStdAnswer(count); //if not understood, return a standard
answer
}
--
Moritz Bellach
Baumgartenstr. 36
65232 Taunusstein
+++ GMX - die erste Adresse f�r Mail, Message, More +++
1 GB Mailbox bereits in GMX FreeMail http://www.gmx.net/de/go/mail
BEGIN:VCARD
VERSION:2.1
ADR;HOME:;;Baumgartenstr. 36;Taunusstein;;65232;DE
BDAY:19860814
EMAIL;PREF;INTERNET;H:[EMAIL PROTECTED]
FN:Moritz Bellach
LABEL;HOME:Baumgartenstr. 36
Taunusstein, 65232
DE
N:Bellach;Moritz;;;;
TEL;HOME;VOICE:06128968693
TEL;PREF;CELL;VOICE;H:01791041564
REV:20050106T140654Z
END:VCARD