problem with traversing .... please help....

Hi everybody,

I m working in a project in which I have to develop a code in java that checks the number (we call a sponsor in this case), we that number has a sponsor then it will get added under that sponsor, and it the number doesmt have any sponser number then it has to stored at some other place , and at any future if its sponsor comes then this number automatically gets added to this sponsor and hence all the number automatically get added which are under this number, how to get it done, please provide me with some code, i m in a problem please help me out of this, thanks in advance....

Nitin

[644 byte] By [nitin.vatsa] at [2007-11-27 5:25:19]
# 1
<Stares at posting/>?
Hippolytea at 2007-7-12 14:45:20 > top of Java-index,Java Essentials,Java Programming...
# 2
We can't take care of the Analysis and the Development part of your project all by ourselves. Please prove us some willingness to solve this problem by yourself and we'll gladly help with some specific technical problems.
Dalzhima at 2007-7-12 14:45:20 > top of Java-index,Java Essentials,Java Programming...
# 3

1) Making your whole post bold and italic is annoying and makes it hard to read.

2) I have no idea what you're asking. Be specific.

3) Don't ask for soure code. That's not what this site is for. You try it yourself, post what you've got, and ask specific questions about the parts that are giving you trouble. Somebody here then guides you toward the answer.

jverda at 2007-7-12 14:45:20 > top of Java-index,Java Essentials,Java Programming...
# 4

i wanna add a number to a sponsor that is again a number , if the sponsor is found then this number will get added under that sponsor other wise that number has to wait for its sponsor to come, but in the mean time if it has got childrens then they will get added under this number , and suppose in the near future if it gets sponsor then this number gets added under that sponser and all the children accordingly, so how to resolve this problem , please advice me now., hope i m clear this time.

nitin.vatsa at 2007-7-12 14:45:20 > top of Java-index,Java Essentials,Java Programming...
# 5
Step 1: Define class Sponsor?
Hippolytea at 2007-7-12 14:45:20 > top of Java-index,Java Essentials,Java Programming...
# 6

> i wanna add a number to a sponsor that is again a

> number , if the sponsor is found then this number

> will get added under that sponsor other wise that

> number has to wait for its sponsor to come, but in

> the mean time if it has got childrens then they will

> get added under this number , and suppose in the near

> future if it gets sponsor then this number gets added

> under that sponser and all the children accordingly,

> so how to resolve this problem , please advice me

> now., hope i m clear this time.

Like I said...

2) I have no idea what you're asking. Be specific.

jverda at 2007-7-12 14:45:20 > top of Java-index,Java Essentials,Java Programming...
# 7
Don't crosspost. It wastes people's time. http://forum.java.sun.com/thread.jspa?threadID=5176324
jverda at 2007-7-12 14:45:20 > top of Java-index,Java Essentials,Java Programming...
# 8

> i wanna add a number to a sponsor that is again a

> number , if the sponsor is found then this number

> will get added under that sponsor other wise that

> number has to wait for its sponsor to come, but in

> the mean time if it has got childrens then they will

> get added under this number , and suppose in the near

> future if it gets sponsor then this number gets added

> under that sponser and all the children accordingly,

> so how to resolve this problem , please advice me

> now., hope i m clear this time.

Do you work for some secret service agency?

qUesT_foR_knOwLeDgea at 2007-7-12 14:45:20 > top of Java-index,Java Essentials,Java Programming...
# 9
Oh.... Now I get it.
Hippolytea at 2007-7-12 14:45:20 > top of Java-index,Java Essentials,Java Programming...
# 10

> i wanna add a number to a sponsor that is again a

> number , if the sponsor is found then this number

> will get added under that sponsor other wise that

> number has to wait for its sponsor to come, but in

> the mean time if it has got childrens then they will

> get added under this number , and suppose in the near

> future if it gets sponsor then this number gets added

> under that sponser and all the children accordingly,

> so how to resolve this problem , please advice me

> now., hope i m clear this time.

Full marks for gibbering incomprehensibility.

Use a tree. But you're doomed.

dcmintera at 2007-7-12 14:45:20 > top of Java-index,Java Essentials,Java Programming...