Can anybody help me with recursion logic. I have a iterator object, on which I am iterating using while loop. Then in each iterated object I again have to iterate and so on.
private void handleRecursiveMethod(someMethod) {
Iterator<Sometype> methods=doingSomething(someMethod));
while(methods.hasNext()){
printingDetailsAboutThisMethod(methods.next())
// Again with each method I have to do same operation untill methods.hasNext becomes false.Please help here.
handleRecursiveMethod(methods.next());
// By calling this, It doesnot complete while loop first time. } }}
Please help me asap. Thanks in advance.
