G'day,
Congratulations on the set up of the site, very easy, very professional and most welcoming.
I am a total novice to Java and am just working through the on line tutorials, my programming experience was with a TRS COCO II using BASIC many, many years ago.
I already have a query, if someone could "lend a Hand"
hal
here's my query, an extract from the tutorial page:-
Consider the following code snippet:
int i = 10;
int n = i++%5;
Question: What are the values of i and n after the code is executed?
Answer: i is 11, and n is 0
My problem is :- Does the second line (int n=1++%5;) alter the original value of "i" in line one?
I would have thought all it did was to set the value of n as i+1 leaving i = 10, then do the modulus part.
