How to compile a program

Once you have finished your implementation and you have saved your program, you are able to compile it.There are two ways to compile a program.

Table 2.1. 

  Description Shortcut
Using the icon compile in the toolbar. The program will be compiled. This icon is enabled if the program has been saved before. F5
Using the menuitem compile in the java menu: Compile the current document to a class file. If the file has not been saved before it will be automatically saved.