Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

recursive function

807599Jan 23 2007 — edited Jan 24 2007
Hi
iam new to java .i need help on the recursive algorithm ..I have a hashmap where value is a array list for eg:
key         value 

a            ->   b ,c,d,e,f
b           ->    i,j,k,l,m
d            ->   f,p,q
i            ->   u,w,x
v            ->  z,l
r           ->  1,2,3,4
t          ->  ma,ku,sa
input to the program is "a" i need to look whether "a" has any value if it does for each value i need to look in the hashmap and find whether is has any value ,i need to go recursively to get all the elements .

output when string "a" is
a =b,c,d,e,f
b= i,j,k,l,m
i=u,w,x
d= f,p,q
I don't need any code but any help with recursive algorithm would really help
thanks for the help
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 21 2007
Added on Jan 23 2007
9 comments
240 views