AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

suggerimento

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java (Italian)
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Wed Jun 14, 2006 8:18 pm    Post subject: suggerimento Reply with quote



ciao
sto implementando un semplice menu di interfaccia su cmd

do {
// scelta operazione da parte dell' utente
BufferedReader br = new BufferedReader(new
InputStreamReader(System.in));
nOperazione = (char) br.read();
System.out.println("tipoOperazione " + nOperazione);

switch (nOperazione) {
case 1:
newPartita();
break;
case ESCI:
System.out.println("Fine");
break;
default:

System.out.println("Tipo operazione ( " + nOperazione + " ) scelto
non consentito.");

break;
}
} while(nOperazione != ESCI);

quando entro nel case 1 faccio delle cose alla fine delle quali vorrei
uscire dal programma (come se nOperazione fosse uguale a ESCI).
Qualcuno mi può aiutare perchè mi sto perdendo in un bicchiere
d'acqua e in una marea di soluzioni accrocchiate.
grazie
ciao
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.