Help using recursion in Java

Posted by Mercer on Stack Overflow See other posts from Stack Overflow or by Mercer
Published on 2010-05-12T15:00:12Z Indexed on 2010/05/12 15:04 UTC
Read the original article Hit count: 173

Filed under:
|

I have a class Group. In the class I have two fields, idGroup IdGroupGroup. Groups may be part of other groups. My class Group is defined in a HashMap<Integer,Integer>; the key is IdGroupGroup and value is idGroup. I want to search the map for a particular idGroup; can I use recursion to do this?

© Stack Overflow or respective owner

Related posts about java

Related posts about recursion