Network Programming in Java

Homework 1
Frequently Asked Questions

Q: Are we supposed to put comments after each line in our code or as you stated in the submission procedure, would a brief description (one line for each file) of each file be enough?

A: The submission procedure document is describing the contents of the README file you should submit (not the code itself). In the README file we expect a single line description of the contents of each file submitted. As for the commenting of the code itself, you should make sure the code is readable, but there are no requirements for HW1.

Q: What should a Professor object do with toString?.

A: The project description didn't say anything about this (it's fixed now), but a Professor object should include a toString method that returns the name, id and department. If you have already finished and didn't do things this way - don't worry. The purpose of this assignment is to make sure people can create and run Java programs, and we are not that worried about the exact behavior of the programs...

Q: The sample main() includes one ID that is the number 012. Since this starts with a leading 0, it is interpreted as an octal number - should I worry about this?

A: Don't worry about it (it's been removed from the code).