Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I have this assignment and don't know how to add the date. It all says don't use cannot use System.out.println(). Write (i.e. implement/define/code) a public

I have this assignment and don't know how to add the date. It all says don't use cannot use System.out.println().

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 YOUR_FULL_NAME followed by a newline. Example using the command-line for CSC205AA student Dusty Rhodes. command-prompt: edit MakeHelloWorld.java command-prompt: javac MakeHelloWorld.java command-prompt: java MakeHelloWorld >HelloWorld.java command-prompt: javac HelloWorld.java command-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" followed by programmer name followed by a newline to the standard output stream. @creator YOUR_FULL_NAME_GOES_HERE @generated YYYYY.MM.DD_FORMATTED_DATE_GOES_HERE It then says: The YYYYY.MM.DD formatted date in the generated public class HelloWorld can be initialized using java.util.Calendar. The year and single-digit months & days must be prefixed with a zero. {Cal.java demonstrates the use of Java's class Calendar} The generated public class HelloWorld cannot use System.out.println() when printing to the standard output stream. The phrase "hello, world" must be in double quotes and the letters must be lowercase.

Can anyone help with this?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Accidental Data Scientist

Authors: Amy Affelt

1st Edition

1573877077, 9781573877077

More Books

Students also viewed these Databases questions

Question

8. Do the organizations fringe benefits reflect diversity?

Answered: 1 week ago