package myintergertest; /** * * @author Engineering */ public class Main { /** * @param args the command line arguments */ public static void
You can't. Java is strictly pass-by-value.
See http://javadude.com/articles/passbyvalue.htm
Your choices are to wrap the integer in an object (or array), pass that in and update, return a value, or make the integer a class/instance variable.
Which is better depends on the situation.