Modify the Comments.java program in Exercise 10 so that the statement aboutcomments is displayed in a dialog box. Save the class as CommentsDialog.java. Explanation The task at hand requires you to make changes to an existing program named “Comments.java”. The goal is to modify this program so that the statement about comments is displayed in a dialog box rather than ...
Write, compile, and test a class that uses the command window to display thefollowing statement about comments:“Program comments are nonexecuting statements you add to a file for the purpose ofdocumentation.”Also include the same statement in three different comments in the class; eachcomment should use one of the three different methods of including comments ina Java class. Save the class as ...