Practice Makes Perfect
Everyone should be compiling some Java code each time you are working in class!
Suggested activities:
1. Copy and paste and studying the results and code. Just looking at code in a book is not enough to learn. So get yourself set up with a Tester.java program, that you can quickly paste code from source into the main method, compile and run. Do it!
2. Regularly type the code in to your Tester.java program. This will help you identify the typical typing mistakes you will make that the compiler will catch. Later when writing code from scratch, you may see the same error reappear. Make a note mental or physical of the types of dumb typing blunders you make. I know mine and there are a bunch.
3. Occasionally pursue an idea on how to vary an example or make a small example.
4. Attempt an exercise or two at the end of the chapters. Ask questions in class if you have problems.
5. Follow the step by step exercises in the text chapters. Ask questions in class if you have problems.
science-ntu-ac-uk