Greetings there people
Here I come again with 2 doubts this time, one from a self
test and another from an explanation in a chapter I don't understand >_< !
Let's go by parts:
==> Self test questions (Regarding operators this time but it has nothing to do with operators , more like enums )
I don't know there how exactly for works. I believe while its checking the enum (it returns an array as said), then I believe declared Days type variable "d" , takes F value once it finds it on the enum, assigning it to d2 variable.
When comes to ternary operator , ¿ isn't it comparing something like : Days.TH = Days.F ? Of course, due answer I am wrong, but I don't know why. (Probably in mistaken with reasoning)
====
Second part, the doubt about an explanation regarding flow control.
Reading about switch statement and case .
Here what it says:
Wow! how is so? Aren't both vars final int? . So then? (Or its due b takes value 2 in another line instead when declared? )
=======
That's all.
Thanks in advance for the answers ^_^