aspose file tools*
The moose likes Java in General and the fly likes hashmap and hashset Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "hashmap and hashset" Watch "hashmap and hashset" New topic
Author

hashmap and hashset

md.rashedul hasan
Greenhorn

Joined: May 19, 2012
Posts: 1
I have a input some think like following:

A B C D

E B C F

N B Q G

Possible output: when we find C in the row, we will get following

A B C D

E B C F

Here C is parent node. Using this parent node(C) where i find A then i will get following output

Q B A D

N B A D

Here I will get list of values(parent nodes and child nodes)

So, How I can implement this notion by using Hashmap and Hashset?
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18981
    
  40


You posted this topic in the ranch office forum -- the forum used to discuss issues/questions related to the ranch itself.

Let me move this topic to the java in general forum for you.

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: hashmap and hashset