What java code i should write on jGrasp or notepad? The solutions provided by ch
ID: 3781294 • Letter: W
Question
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.Explanation / Answer
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.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.