posted 16 years ago
Hi, man,
if you look at the code, the m1 method is not increasing the "private static int" x at all!!!
m1 is merely increasing a copy of one of the parameters that is passed to it.
The question is set up in this way to fool us, actually, the following code behaves the same way as your original code: