W
www
Hi,
I am not sure my question is valid or not. It is the following:
public class MyClass {
public void doA() {
int num = 10;
doB();
//Now, num value has been changed
}
public void doB() {
//I need to access and change the value num inside doA. But I don't
know how to do it.
}
}
Is this possible? Thank you for your help.
I am not sure my question is valid or not. It is the following:
public class MyClass {
public void doA() {
int num = 10;
doB();
//Now, num value has been changed
}
public void doB() {
//I need to access and change the value num inside doA. But I don't
know how to do it.
}
}
Is this possible? Thank you for your help.