K
kelvSYC
I have a method that says something like this:
void foo(int b) {
// Do stuff and calculate the value of condition and anotherInt
if (condition) {
foo(anotherInt);
}
}
How can I change foo so that the inner foo is called only when the
outer foo is completed (ie. only one foo method is running)?
void foo(int b) {
// Do stuff and calculate the value of condition and anotherInt
if (condition) {
foo(anotherInt);
}
}
How can I change foo so that the inner foo is called only when the
outer foo is completed (ie. only one foo method is running)?