Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Spotting errors

 
Kamran Khaen
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if anyone has the time im, going to submit this assignment like in 4 5 hours anyone want to read through it and tell me if the can spot any mistakes


STUDENT CLASS:






SOCIETY CLASS

i


DATE CLASS










 
carina caoor
Ranch Hand
Posts: 300
Eclipse IDE Oracle Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No one has got this much time to go through the code.
 
Rob Spoor
Sheriff
Posts: 20822
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rename Date's "getAsString" method to "toString", and add more Javadoc comments.

Change this into simpler form:
It is possible to for a student to sign up twice for the same meeting; shouldn't you prevent this?
 
Campbell Ritchie
Marshal
Posts: 52664
122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As well as Rob's comment about signing up the same student twice, you should consider throwing an Exception if that happens, or if the number of possible students is exceeded.
 
What's wrong? Where are you going? Stop! Read this tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!