When I run the following code which I got from Head First
Java (it uses Java 5.0, by the way), I get the following error:
run:
Exception in
thread "main" java.lang.RuntimeException: Uncompilable source code - Erroneous sym type: Accum.getAccum
at ThreadOne.<init>(TestThreads.java:27)
at TestThreads.main(TestThreads.java:18)
Java Result: 1
BUILD SUCCESSFUL (total time: 2 seconds)
Here is the code:
Can anybody help me with this problem? I have marked the problem lines, by the way.