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"...
April 6th, 2011, 09: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>)
Ray
April 3rd, 2011, 07: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, 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.