Results 1 to 10 of 10
- 05-13-2009, 01:08 PM #1
- 05-13-2009, 09:30 PM #2
Have a look at the Java API source code for numerous examples.
Don't forget to mark threads as [SOLVED] and give reps to helpful posts.
How To Ask Questions The Smart Way
- 05-13-2009, 09:52 PM #3
API source code?
- 05-14-2009, 12:52 AM #4
Senior Member
- Join Date
- Mar 2009
- Posts
- 552
- Rep Power
- 5
This should help you
The asterisks on each line are not necessary, only the /** and */ at the beginning and end. Note that all tags must be at the end of the comment, after the descriptionJava Code:/**These are the Javadoc comments. They use a slash * two asterisks, comments/tags, an asterisk, and another * slash. They describe the method after them * * @param s the parameter of this method */ public void myMethod(String s){ //method code }If the above doesn't make sense to you, ignore it, but remember it - might be useful!
And if you just randomly taught yourself to program, well... you're just like me!
- 05-14-2009, 04:04 AM #5
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
- 05-14-2009, 04:39 AM #6
Senior Member
- Join Date
- Mar 2009
- Posts
- 552
- Rep Power
- 5
Lol... personally, I would never try looking through Java source. Too much for me, and I don't really want to see the original Java code. I do have plenty of code with Javadoc comments though, if my earlier post didn't help.
If the above doesn't make sense to you, ignore it, but remember it - might be useful!
And if you just randomly taught yourself to program, well... you're just like me!
- 05-14-2009, 04:49 AM #7
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Sometime it useful to me lol. Looking at the source code, I'm able to find different logic in developments.
- 05-14-2009, 08:23 AM #8
Presume you're talking about
..\jdk1.6.0_13\src.zip which I had extracted to ..\src
lol it sure does contain numerous sub-folders
Anyway I checked my code (again) and it just seems correct. I don't see a description of the @param. The funny thing is that the javadoc generated excludes one of the classes (Employee), and that there is a warning icon next to the class within Eclipse (even though it compiles when running the project).
Java Code:/* * @param employee - any object of the Employee class. */ //5. Operators @Override public boolean equals (Object anotherObject) {
- 05-14-2009, 08:57 AM #9
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
- 05-14-2009, 08:57 AM #10
Senior Member
- Join Date
- Mar 2009
- Posts
- 552
- Rep Power
- 5
Your parameter is non-existant. That would cause problems. Also, double asterisk at the beginning (/** instead of /*) for Javadoc. Single asterisk is for regular comments.
If the above doesn't make sense to you, ignore it, but remember it - might be useful!
And if you just randomly taught yourself to program, well... you're just like me!
Similar Threads
-
HOw to run ant javadoc
By Manfizy in forum New To JavaReplies: 24Last Post: 02-18-2009, 09:59 PM -
JavaDoc
By javarishi in forum EclipseReplies: 1Last Post: 04-10-2008, 08:41 AM -
jsp:param action
By Java Tip in forum Java TipReplies: 0Last Post: 12-24-2007, 10:03 AM -
what can I do with javadoc
By christina in forum Advanced JavaReplies: 1Last Post: 07-25-2007, 11:08 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks