Compile and execute a prewritten Java program

1. Open the source code file named Programming.java using Notepad or the text editor of your choice.

2. Save this source code file in a directory of your choice, and then change to that directory.

Open Command Prompt

Change to directory where source code is locate

3. Compile the source code file. There should be no syntax errors. Record the command you used to compile the source code file.

Use [javac Programming.java] to compile source code

4. Execute the program. Record the command you used to execute the program, and also record the output of the program.

Use [java Programming] to execute the source code

Create a screen shot of the actual “run” in Command line and save it in a word document

5. Modify the class so it displays I am learning how to program in Java. and then change the class name to JavaProgramming. Save the file as JavaProgramming.java. Compile and execute the program.

Use [javac JavaProgramming.java] to compile the source code

Use [java JavaProgramming] to execute the source code

Create a screen shot of the actual “run” in Command line and save it in a word document

6. Modify the JavaProgramming class so it prints tow lines of output. Change the class name to Awesome. Add a second output statement that displays That’s Awesome! Save the modified file as Awesome.java. Compile and execute the program.

Use [javac Awesome.java] to compile the source code

Use [java Awesome] to execute the source code

Create a screen shot of the actual “run” in Command line and save it in a word document

Order from us and get better grades. We are the service you have been looking for.