recursive class

what i need is the way to self-call a class.what it means:in a class, i want to build in a method, which calls a new instance of the class, it's contained in.can anyone help me out please, and post the necessary code? thx a lot, Andy
[276 byte] By [Xenograph] at [2007-9-26 1:28:28]
# 1

just read it again, can't find any sense so:

i've got a class named "NavigationClass". It's a servlet, and containing a method called "LoadNavigation". In this method I check some parameters. when one of them has a special value, I want to recall the method in a new instance.

in vb it looks like this:

dim objTemp

Set objTemp = new NavigationClass

objTemp.LoadNavigation parameter1 parameter2

I tried to find out how to do it on my own, but never found a solution. so if you know, please post the necessary code.

thanx in advance, andy

Xenograph at 2007-6-29 1:14:18 > top of Java-index,Core,Core APIs...
# 2
How about something like this:class NavigationClass {public LoadNavigation(int i) {if (whatever) {NavigationClass n = new NavigationClass();n.LoadNavigation(5);}}}Or did i misunderstand the question?
sorenmors at 2007-6-29 1:14:18 > top of Java-index,Core,Core APIs...
# 3
no, you were exactly right.sometimes you can't see the wood becouse of the many trees. and that's what has happend to me.thx a lot.
Xenograph at 2007-6-29 1:14:18 > top of Java-index,Core,Core APIs...