Win a copy of Mesos in Action this week in the Cloud/Virtualizaton 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: 20533
54
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: 48985
60
  • 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