Einzelnen Beitrag anzeigen
Alt 07.01.2004, 16:50   #37
jak
Inventar
 
Registriert seit: 13.06.2001
Beiträge: 1.830


Standard

Mir fallen zwei Möglichkeiten ein:
1. System.exit(0) oder so ähnlich
2. eine Exception werfen: Du kapselst das ganze Programm in einen try-catch Block und wirfst bei illegaler eingabe eine Exception.

Mir ist 2. sympatischer.

Jak
____________________________________
Join the DNRC | Godwin\'s Law (thx@stona)
Documentation is like sex: If it\'s good, it\'s very, very good. If it\'s bad, it\'s better than nothing.
\"In theory, theory and practice are the same. In practice, they are not\" (Lawrence Berra)
jak ist offline   Mit Zitat antworten