when i pass variables to my method they are not updated in the main code, but only passed to the method. how to do that once passed variable would update in main code? Thanks!
//////////// here is main code:
public static class MyCoding extends MainScreen{ static int mee=1;
public static void myCode(){
Status.show("mee="+mee, 2000); // shows me=1
Moo.moo(mee);
Status.show("mee="+mee, 2000);// should be mee=76547545 but still shows mee=1 !
}
}
//////////// here is my method:
public static class Moo extends MainScreen{
public static void moo(int bee){
mee=76547545;
return;
}
}
What to do? Thanks!