ive got a method
private void getAllChildsCor rToParent(Integ er parentId,Intege r compId,String name){
for(){
//-------
}
if{
for(){
getAllChildsCor rToParent(paren tId,compId,name );
//----
}
}
for(){
//----
}
stmnts;
}
my problem is tat after executing the last statements , the control passes to the function inside the for loop. i want to exit from the whole method and go to the method from where getAllChildsCor rToParent() was called. how do i do this.
private void getAllChildsCor rToParent(Integ er parentId,Intege r compId,String name){
for(){
//-------
}
if{
for(){
getAllChildsCor rToParent(paren tId,compId,name );
//----
}
}
for(){
//----
}
stmnts;
}
my problem is tat after executing the last statements , the control passes to the function inside the for loop. i want to exit from the whole method and go to the method from where getAllChildsCor rToParent() was called. how do i do this.
Comment