What java code i should write on jGrasp or notepad The solut

What java code i should write on jGrasp or notepad? The solutions provided by chegg is kind of messed up so i don\'t want t use it.

10. Write, compile, and test a class that uses the command window to display the following statement about comments: \"Program comments are nonexecuting statements you add to a file for the purpose of documentation.\" Also include the same statement in three different comments in the class; each comment should use one of the three different methods of including comments in a Java class. Save the class as comments.java.

Solution

class commentsCheck{  

public static void main(String args[]){  

System.out.println(\"Program comments are nonexecuting statements you add to a file for the purpose of documentation\"); //Program comments are nonexecuting statements you add to a file for the purpose of documentation

} /*Program comments are nonexecuting statements you add to a file for the purpose of documentation*/

}

In the above class it is mentioned how to give comments for the documentation purpose in two different syles. I think there are only two ways in which you can comment in java.

What java code i should write on jGrasp or notepad? The solutions provided by chegg is kind of messed up so i don\'t want t use it. 10. Write, compile, and test

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site