Illustrate the two ways to provide comments in a Java program by writing the following as comments.

Question:

Illustrate the two ways to provide comments in a Java program by writing the following as comments. Use a different comment format for each of the two sentences. This is a relatively long sentence that, if embedded in a Java program, would confuse the Java compiler and cause an error to be generated unless, of course, it was commented out. 

This is a relatively short sentence.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: