Thinking in Java Fourth Edition Bruce Eckel Chapter 1 Exercise 15

Exercise 15: Take the program in Exercise 2 and add comment documentation to it. Extract this comment documentation into an HTML file using Javadoc and view it with your Web browser.

Solution:

/**
* Public class contained in file of the same name that includes main()
*/


public class HelloDocTest
{
    /** main method executed by java
    */
 
    public static void main(String[] args)
    {
        System.out.println("Hello World!");
    }
}

Output:


Leave a Reply

Your email address will not be published. Required fields are marked *