Chapter 3
Running Programs
IN THIS CHAPTER
Compiling and running a program
Editing your own Java code
Working with a workspace
If you’re a programming newbie, for you, running a program probably means clicking a mouse. You want to run Microsoft Word, so you double-click the Microsoft Word icon. That’s all there is to it.
When you create your own programs, the situation is a bit different. With a new program, the programmer (or someone from the programmer’s company) creates the program’s icon. Before that process, a perfectly good program may not even have an icon. So what do you do with a brand-new Java program? How do you get the program to run? This chapter tells you what you need to know.
Running a Canned Java Program
The best way to get to know Java is to do Java. When you’re doing Java, you’re writing, testing, and running your own Java programs. This section prepares you by describing how you run and test a program. Instead of writing your own program, you run a program that I’ve already written for you. The program calculates your monthly payments on a home mortgage loan.
The mortgage-calculating program doesn’t open its own window. Instead, the program runs in Eclipse’s ...
Get Beginning Programming with Java For Dummies, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.