This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
My problem is the following: I have a class with a (not static) enum in it that represents 6 values. If I now create an instance of this class, are the values in the enum independent from the values in other objects?
Life is full of choices. Sometimes you make the good ones, and sometimes you have to kill all the witnesses.
So I gather that your enum is defined as an inner class? If so, by definition per the JLS, inner Enum classes are implicitly static inner classes and so the enum's values are the same everywhere. In recognition of their being a static inner class, you need to access the enum from the outer class name and not an instance variable name: