Yes—sometimes typing in a program forces you to see details you would otherwise miss. Other times it is a waste of effort. Of course, not running the program at all is a supreme waste of opportunity.
1. The steps are shown for a computer running Windows XP. Nearly the same steps can be used for other varieties of Windows. The software used in these notes is the minimum possible requirement, free on all Windows computers. Even if you have better software it is wise to start out using this minimum.
2. If you use an integrated programming environment (IDE) such as Eclipse or BlueJ you can copy programs into your environment and run them. But most IDEs make you set up a project and require many preliminary steps. For quickly copying a program and running it, the steps described here are best.
3. Rather than use Notepad, you can use the Crimson programming editor. It is free, simple and easy to use, but it is a big improvement over Notepad. See www.crimsoneditor.com.
4. For writing big programs from scratch, a free Java IDE such as BlueJ may be your best choice. See www.bluej.org. Other IDEs are described here: http://www.apl.jhu.edu/~hall/java/IDEs.html.
If you decide to use IDE you will have to learn how to use it. For short programs, Notepad (or Crimson) and the DOS command line are easiest.
Can Microsoft Word be used as a program editor?