Running Example Programs

This chapter provides step-by-step instructions of writing a Java program using a text editor, and then compiling and running this program from command prompt. Several Integrated Development Environments (IDEs) are mentioned in this chapter. We have already installed NetBeans. That and Eclipse are the most popular in Java professional practice.

7. Step 5: Paste into Notepad


Answer

Yes.

If you are using some other text editor (such as Notepad++) or an IDE (such as BlueJ) you can paste into it.

Step 5: Paste into Notepad

But for our minimal environment, continued with Notepad.

RIGHT-click in the Notepad window. A menu will appear. Select "Paste"

Or you can click in the window and hit control-V.

The program has been copied to Notepad.

Figure07-12paste



Question 2:

How do you save the text in Notepad to a file?