Using System.exit() is usually done to cover up problems where you program isn't running (or ending) correctly. It's not a great solution, but in real life time is money so sometimes you've got to...
Type: Posts; User: helloworld922
Using System.exit() is usually done to cover up problems where you program isn't running (or ending) correctly. It's not a great solution, but in real life time is money so sometimes you've got to...
1. Use comments. Especially Javadoc comments on public/protected functions.
2. Use proper indentation. This means each block should be indented with a "tab" or "4 spaces", which-ever you prefer....