Hi, I'm studying
Java for dummies 8th Edition. While working on the "SEE PLUS PLUS" (p. 93) exercise, running JShell, a question arises.
My guess was:
int i = 8
i++ [8]
i [9]
i [9]
i++ [9]
i [10]
++i [11]
i + i ++ [22] (11 + 11 = 22...and 12 is saved for i)
i++ + i [24] (12 + 12 = 24... and 13 is saved for i)
JShell says that every number is correct except for the last one -- it says
25.
Can someone please explain to me where I got it wrong?
Thank you in advance.