It's lonely in the lab by yourself...

Dec 20, 2007 16:07

Java: "Everything is an Object! I'm pass by reference!
...Except when things aren't objects. And so are pass by value."

So this is a total shot in the dark, but does anyone know of a nice, easy way to make an enumerated list in Java? I want to be able to reference a growable list of doubles/integers by a String. I'm currently using a HashMaps with Double and Integer objects, but Java keeps converting them back into primitives and things stop working at random times.
Previous post Next post
Up