This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance 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
Pie
Posts: 20546
57
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
Sheriff
Pie
Posts: 49405
62
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic