Question: Use the code provided below to create a class named Program, modify the source code so the program outputs your name instead of student. Provide


Use the code provided below to create a class named Program, modify the source code so the program outputs your name instead of "student".

Provide programmer comments in the source code file as per the lecture materials

Take a screen shot of the eclipse console showing the result of running the program and place this into your MS Word document.

Upload your Java source code file along side of your MS Word document.

 

public class Program {

 

      public static void main(String[] args) {

            String name = "Student";

            System.out.println("Welcome to CST8116!");

            System.out.print("Java says: Hello ");

            System.out.print(name);

            System.out.println(); // new-line

            System.out.println("Program modified by " + name);

      }

      

}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!