Hi Lisa
You will never be able to pass the value, you want, to another class because you did not pass the right value to your newint variable.
The problems was that you pass "intvalue" to "newint" too early that it had recieved "intvalue" initialization value and unable to change it in later code.
you should know that declaring newint=intvalue never make "newint" automatically change with "intvalue". The declaration was just passing the init value of "intvalue" to "newint", this is why you got always zero, or 99 when you changed init value.
To solve your problem, you may try assign newint right after;
intvalue = Integer.parseInt(args[0]);
newint=intvalue;
By the way, why do you not directly pass intvalue to another classes, it is static and pass it should be more easy.
David