April 24th, 2011, 09: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, 09: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"...
April 6th, 2011, 10:01 PM
Add "archive="jCharts-0.7.5.jar" to your applet tag.
(i.e., <html><body><applet code="SwingDemo.class" archive="jCharts-0.7.5.jar" width='350' height='300'></applet</body></html>)
April 3rd, 2011, 08:48 PM
You need to add the static keyword to the create method in the TicTacToe class if you want to invole it without creating an instance of TicTacToe. So change:
public TicTacToe create(String input)...
March 27th, 2011, 12:03 PM
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, 12:31 PM
The exception is being thrown because your Serial class does not implement java.io.Serializable.
March 25th, 2011, 10: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, 09:14 PM
In your toString method you are testing the value of the "month" variable but you never assigned a value to month.