go to home page   go to next page

revised: 01/18/99, 01/29/2000, 01/13/2006, 08/03/2009

CHAPTER 7 — Running Example Programs

These notes have many example Java programs. You need to run them and play with them. The most effective way to learn programming is to fiddle with example programs.

You don't have to type in the programs to run them. If you can see the program in a browser window, then you can easily copy it to Notepad (or other editor) and then copy it to a file and run it.

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 it as described in the previous chapter.

If this is perfectly clear to you then you can skip this chapter. If not, this chapter walks you through these steps.

Chapter Topics:

QUESTION 1:

Is it sometimes beneficial to type in a program rather than just copying it?