revised: 01/18/99, 01/29/2000, 01/13/2006
These chapters have many example Java programs. You need to run them and play with them. There is probably no more effective way to learn programming than to fiddle with example programs.
You don't have to type in the programs to run them. If you see the program in a browser window, then you can easily copy it to Notepad (or other editor). First highlight the code by clicking in the window and dragging the mouse over the code you wish to copy. Then click Edit and then Copy in the browser's menu. Finally click Edit and then Paste in Notepad. Now Notepad has a copy of the program. Save the copy to a file, compile it, and run.
If this is perfectly clear to you then you can skip this chapter. If not, this chapter walks you through these steps.
Is it sometimes beneficial to type in a program rather than just copying it?