Results 1 to 3 of 3
  1. #1
    krishanu is offline Member
    Join Date
    May 2011
    Posts
    20
    Rep Power
    0

    Default how to use javadoc

    Hi,
    I have a very small program....bellow is the code

    class AbstractDemo {
    public static void main(String args[])
    {
    B b = new B();
    b.callme();
    b.callmetoo();
    }
    }
    abstract class A
    {
    abstract void callme();
    void callmetoo()
    {
    System.out.println("This is concrete method");
    }
    }

    class B extends A
    {
    void callme()
    {
    System.out.println("B's implementation callme");
    }
    }

    Now question is how to create documentation for this program.
    I can specify only a single source file ..
    javadoc override.java

    but its giving me the error ..."No public or private class found to document"

    I am very new to java....so can anybody please tell me how to use this javadoc feature??

    any help is appreciated!!!!

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    10,484
    Rep Power
    16

    Default

    Well, that class probably ought to be public.
    Java Code:
    public class AbstractDemo  {...}

  3. #3
    krishanu is offline Member
    Join Date
    May 2011
    Posts
    20
    Rep Power
    0

    Default

    yeah...grt...thanks..working

Similar Threads

  1. Javadoc
    By JavaTheHut in forum New To Java
    Replies: 4
    Last Post: 12-17-2010, 10:33 AM
  2. HOw to run ant javadoc
    By Manfizy in forum New To Java
    Replies: 24
    Last Post: 02-18-2009, 09:59 PM
  3. JavaDoc
    By javarishi in forum Eclipse
    Replies: 1
    Last Post: 04-10-2008, 08:41 AM
  4. what can I do with javadoc
    By christina in forum Advanced Java
    Replies: 1
    Last Post: 07-25-2007, 11:08 PM
  5. javadoc question
    By orchid in forum New To Java
    Replies: 1
    Last Post: 05-15-2007, 05:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •