Saturday June 14, 2008 | CSC 257 Online CSC 257 Class Discussion |
|
Problem compiling
When trying to compile HelloWorld.java, I get:
Error occurred during initialization of VM Could not reserve enough space for code cache I am logging into remote.eos.ncsu.edu, which is the FAQ solution to the problem. Posted by mhnash ( May 19 2008, 10:52:06 AM EDT ) Permalink Comments [3] |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
sum += (Integer)i.next();
Instead of the statement given by the answer key:
sum += ((Integer)i.next()).intValue();
The same goes for the removeSet() method, also. I got the same answer either way for both methods. Is there a reason to use intValue();? Or does it matter? I use Java 5.0 if that helps.
Posted by elstuelk ( Jun 14 2008, 06:42:32 PM EDT ) Permalink Comments [1]