Java Reference
In-Depth Information
public class MyFirstApplication {
public static void main(String[] args){
System.out.println("I've coded, compiled, and run my first Java program!");
}
}
figure 3-15  
14. Save your files. Again, there are multiple ways of doing this. Choose File Save or press Ctrl+S to
save the class you are currently working on. Choose File Save All or press Ctrl+Shift+S to save
all the open classes. Notice that unsaved files have an asterisk (*) next to their name in the Code
Editor tab. Once they are saved, this * will disappear. You can see an example of this in the top‐
left corner of Figure 3-16.
15. You're ready to run your program now. Go to Run Run to compile and run your application.
If you have not saved your files, Eclipse will warn you and offer to save them for you. You can
check the box to instruct Eclipse to always save your files before running. After the program runs,
you should see a new Console tab displayed in the bottom view. This is where standard output is
printed in Eclipse. The bottom view will look something like Figure 3-17.
Search WWH ::




Custom Search