CS108 Page Title

HW1 Code Camp FAQ

In CharGrid can we assume that the grid is a perfect rectangle?
Yes, it is a rectangle. No ragged arrays allowed.
For the blowUp method, could you clarify what the problem means when it says "a digit not followed by a chararacter is replaced by nothing?"
The digit is replaced by the empty string, e.g. if you pass in "8" to blowUp(), you should get an empty string in return. Another example: "aaa8" should yield "aaa".
Eclipse does not accept the parts of the source that use Java 5 features?
You need to set Eclipse to be in "Java 5" mode. Select your project on the left, and then select the Project/Properties window. In there, click on Java Compiler to select Java 5 compiling. In that same window, the "Configure Installed JRE" link brings up a screen to select which JRE to use.
Why am I getting an UnsupportedOperationException when I call it.remove()?
You're probably calling remove() on a collection made with Arrays.asList(). These collections cannot be changed, as they are just shallow objects over the array itself, which cannot change size.
Why am I getting a java.net.ConnectException from Eclipse when I try to run?
This is a quirk with Eclipse trying to use a port on your machine that is in use. Just quit Eclipse and restart and it should choose a different port.
Should the countPlus method count pluses made out of spaces?
Yes, any char counts.
How do I turn in the homework?