View Single Post
Old Jan 13th, 2008, 3:52 AM   #1
mrynit
Hobbyist Programmer
 
mrynit's Avatar
 
Join Date: Mar 2006
Location: WA, USA
Posts: 332
Rep Power: 3 mrynit is on a distinguished road
Send a message via AIM to mrynit Send a message via MSN to mrynit Send a message via Yahoo to mrynit Send a message via Skype™ to mrynit
review javadocs and method design

I have uploaded the pdf that describes the homework assignment and a "jar.zip" file. remove the .zip part to double click and run. the source is inside of the "jar.zip"

I am new to using javadoc and find myself at a loss as to what to write. The comments always seem pointless because params and methods are rather self explanatory. I feel as though I end up repeating myself when describing many methods. particularity one's with return statements where I have to comment the return value and what the method dose. I would like advice on how to do javadoc commenting as apposed to normal commenting

The part I'm most concerned about is the add method in ShoppingCart. I know it works but I don't think it is the best way of doing it. Every time a textfield in the GUI has action with a valid number it sends a new ItemOrder object to ShoppingCart to add to an array list used for computing the cost. So when changing a textfield from one number to another the last occurrence of that same order must be removed or altered to reflect the new change.

After those two issues would you please give a over all look at the logic and design I used.

Thank you.
Attached Files
File Type: pdf hw1-shopping.pdf (144.7 KB, 2 views)
File Type: zip assignmnet1.jar.zip (13.5 KB, 0 views)
__________________
i dont know much about programming but i try to help
mrynit is offline   Reply With Quote