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)
|