This discussion is archived
1 Reply Latest reply: Nov 6, 2008 8:01 PM by 843785 RSS

Breaking out of a recursive method

843785 Newbie
Currently Being Moderated
Is there a way to break out of a recursive method once a condition is met? For example, I want to exit a recursive method that searches a linked list for a particular number when the first occurence of the number is found even though there may be several occurences of the same number in the linked list.