Any updates on assigned exercises? I feel like I'm not doing anything for this class in between labs. I know it's my fault, but if I had something to code and check against, I would definitely do it!
@honeyslayer- I'm 100% sure about what you're asking. With the assumption that want the package of the class show up in the javadoc, one way of doing so is to type package packagename; at the top of your source file (i.e. example.java). Then create the javadoc as usual.
This might not be exactly what you're asking for, however, I don't think we're meant to deal with packages anyways. ;)
Up until today, the two labs doesn't have packages. i.e. http://www.cse.yorku.ca/course_archive/2009-10/S/1030/ProgrammingExercises/2/API/package-summary.html (notice the Package ) except for the first lab, which I can only assume (my assumptions are always silly, but they work) he made a folder called pex01, where Mass.java and MassClient.java resides in. He has package pex01; at the top of each file. Then he generated the javadoc which would look like https://www.cse.yorku.ca/~buildIt/pex/1/pex01.api/pex01/package-summary.html (notice the package pex01 this time)
To compile and run the files use javac pex01/*.java and java pex01.MassClient.java from the parent directory of pex01. (again, I'm not sure if this is the best way but they work.) ;)
Thanks a lot Yuen.. so if I type package packagename at the top of my source file, the package will appear in the API? I'll try that but do I need to put braces under it to enclose the class?
Any updates on assigned exercises?
ReplyDeleteI feel like I'm not doing anything for this class in between labs. I know it's my fault, but if I had something to code and check against, I would definitely do it!
I second that, we need some sort of regular assignments to keep up in check.
ReplyDeleteIf you were using the command line to implement an API how would you indicate the package of the class that is being implemented
ReplyDelete@honeyslayer- I'm 100% sure about what you're asking. With the assumption that want the package of the class show up in the javadoc, one way of doing so is to type package packagename; at the top of your source file (i.e. example.java). Then create the javadoc as usual.
ReplyDeleteThis might not be exactly what you're asking for, however, I don't think we're meant to deal with packages anyways. ;)
Up until today, the two labs doesn't have packages. i.e. http://www.cse.yorku.ca/course_archive/2009-10/S/1030/ProgrammingExercises/2/API/package-summary.html (notice the Package )
except for the first lab, which I can only assume (my assumptions are always silly, but they work) he made a folder called pex01, where Mass.java and MassClient.java resides in. He has package pex01; at the top of each file. Then he generated the javadoc which would look like https://www.cse.yorku.ca/~buildIt/pex/1/pex01.api/pex01/package-summary.html (notice the package pex01 this time)
To compile and run the files use javac pex01/*.java and java pex01.MassClient.java from the parent directory of pex01. (again, I'm not sure if this is the best way but they work.) ;)
It should be Package <Unamed> for the first one. Blogged eats things that looks like markups.
ReplyDeleteAgain, I apologize in advance for typos.
Thanks a lot Yuen.. so if I type package packagename at the top of my source file, the package will appear in the API? I'll try that but do I need to put braces under it to enclose the class?
ReplyDelete