Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-23-2008, 04:09 PM
Member
 
Join Date: Jun 2008
Posts: 8
tony404 is on a distinguished road
java tree
hi
which java collection i need to implement this tree:

root

A B C D E

A1 A2 A3 ... B1 B2 B3..

that means tree with a lot of nodes and each can have also many nodes...
which kind of tree i need to use and where can i find the code for this
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-23-2008, 06:07 PM
Niveditha's Avatar
Senior Member
 
Join Date: May 2008
Posts: 282
Niveditha is on a distinguished road
Send a message via Skype™ to Niveditha
Hello tony,
Please put the question clearly in what do u want to implement this tree?
I meant to say in Swing or AWT or something like that.

If its in swing there is something called JTree which u can implement.
__________________
To finish sooner, take your own time....
Nivedithaaaa
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 06-23-2008, 06:45 PM
Member
 
Join Date: Jun 2008
Posts: 8
tony404 is on a distinguished road
it;s not swing or awt
if i have properties file like this:
G1/G20/G3/X=8
G1/G2/Z=9
G1/Y=9
G8/G7/rr=9
and i need to take this properties file and save it in data structure in order to search it in the future depending in the hirecary for example i need to to save it like when i say get (G1) it will retrun all the sons of the G1 ( G20,G2,Y=9) ,which tree i need to use where can i find code for this
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 06-23-2008, 06:50 PM
fishtoprecords's Avatar
Senior Member
 
Join Date: Jun 2008
Posts: 255
fishtoprecords is on a distinguished road
Take a look at
David Byrden: extending the Java Collection Framework

It shows you how to do it, has sample code, etc.
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 06-23-2008, 07:32 PM
Member
 
Join Date: Jun 2008
Posts: 8
tony404 is on a distinguished road
can you please supply another code sample for implement this tree in java i will be very happy if you help me with this
Bookmark Post in Technorati
Reply With Quote
  #6 (permalink)  
Old 06-23-2008, 07:43 PM
fishtoprecords's Avatar
Senior Member
 
Join Date: Jun 2008
Posts: 255
fishtoprecords is on a distinguished road
I'm lost. The code is in Java. It works.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Binary Tree Implementation in Java Java Tip java.lang 0 04-16-2008 11:35 PM
Need Help With Tree Adt avi New To Java 0 03-20-2008 04:11 AM
Java Grapical Tree Deo Favente Reviews / Advertising 3 02-18-2008 07:12 AM
Tree structure using JAVA trill Advanced Java 1 08-02-2007 03:50 PM
Implementing a red-black tree in java baltazar New To Java 1 07-13-2007 09:37 PM


All times are GMT +3. The time now is 12:54 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org