posted 10 years ago
Hi,
I am really getting confused while comparing functionality of Enum's .values() method in Q7 of Chapter 3 Versus enum example in Chapter 1 page 64.
Please help..
Q7:
Here Suits.values() gives a reference value like @bf73fa
Example :
Which produces:
8
BIG 8
HUGE 10
OVERWHELMING 16
Why in the example, BIG,HUGE.. are printed and in Q7 a reference value is printed? what am i missing here?