I suggest you put together an updated SSCCE that demonstrates your newest code exhibiting the problem.
Type: Posts; User: KevinWorkman
I suggest you put together an updated SSCCE that demonstrates your newest code exhibiting the problem.
That code would print out 8.
You might have a combination of two misunderstandings here.
First, changes you make to a local variable don't "stick". What I mean by that is:
public static void main(String... args){
int...