April 24th, 2011 08:28 PM
If you're using NetBeans you should be able to set a break point on
s = new Socket(addr,i)
run debug and then inspect your addr and i variables when the debugger breaks. They're probably not...
April 24th, 2011 08:12 PM
I don't understand how you are getting the exception that you specified. You should be getting something like this after letting NetBeans create the constructor:
Exception in thread "main"...
March 27th, 2011 11:03 AM
Look at the JavaDocs for HashMap. Your code is trying to iterate the HashMap using an index and that's not the way you loop through the HashMap members.
public String getAllRallies ()
...
March 26th, 2011 11:31 AM
The exception is being thrown because your Serial class does not implement java.io.Serializable.
Ray
March 25th, 2011 09:02 PM
There are several reasons your code will not compile. Beyond getting it compile you have some additional problems but I'll leave that to you to ponder.
You define a public class Zone in the same...
March 22nd, 2011 08:14 PM
In your toString method you are testing the value of the "month" variable but you never assigned a value to month.