Assignment: #MakeHelloWorld Due: 08/26/02018 Points: 3

Specification

Write (i.e. implement/define/code) a public class MakeHelloWorld that when compiled and executed prints the code for a public class HelloWorld to the standard output stream. The generated public class HelloWorld, when compiled and executed, prints to the standard output stream: "hello, world" from CSC205_STUDENT_NAME followed by a newline.

Example using the command-line for csc205 student Dusty Rhodes.

   shell-prompt:  edit MakeHelloWorld.java 
   shell-prompt:  javac MakeHelloWorld.java
   shell-prompt:  java MakeHelloWorld >HelloWorld.java   
   shell-prompt:  javac HelloWorld.java
   shell-prompt:  java HelloWorld
   "hello, world" from Dusty Rhodes

The generated public class HelloWorld file must contain a file comment block that contains the following.

   This Java application prints the phrase "hello, world" 
   to the standard output stream.

   @creator YOUR_FULL_NAME_GOES_HERE
   @generated YYYYY.MM.DD_FORMATTED_DATE_GOES_HERE

Edith Foogooman is a classmate. The output for Edith's program looks like the following.

   /*
    * This Java application prints the phrase "hello, world" 
    * to the standard output stream.
    *
    * @creator Edith Foogooman
    * @generated 02018.08.05
    */

   public class HelloWorld 
   {
      public static void main(String[] argv) 
      {
         System.out.print("\"hello, world\" from Edith Foogooman\n");     
      }
   }
Important Notes
  1. The YYYYY.MM.DD formatted date in the generated public class HelloWorld can be initialized using java.util.Calendar. {Cal.java demonstrates the use of class Calendar} The YYYYY.MM.DD formatted date can also be created using an instance of a class Date object. Note: The year and single digit months & days must be prefixed with a zero.

  2. The generated public class HelloWorld must use System.out.print() and not System.out.println() when printing the phrase hello, world to the standard output stream.

  3. The phrase hello, world must be double quotes and it must be all lowercase.