Results 1 to 6 of 6

Thread: java tree

  1. #1
    tony404 is offline Member
    Join Date
    Jun 2008
    Posts
    8
    Rep Power
    0

    Default 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

  2. #2
    Niveditha's Avatar
    Niveditha is offline Senior Member
    Join Date
    May 2008
    Posts
    307
    Rep Power
    7

    Default

    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

  3. #3
    tony404 is offline Member
    Join Date
    Jun 2008
    Posts
    8
    Rep Power
    0

    Default

    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

  4. #4
    fishtoprecords's Avatar
    fishtoprecords is offline Senior Member
    Join Date
    Jun 2008
    Posts
    571
    Rep Power
    7

    Default

    Take a look at
    David Byrden: extending the Java Collection Framework

    It shows you how to do it, has sample code, etc.

  5. #5
    tony404 is offline Member
    Join Date
    Jun 2008
    Posts
    8
    Rep Power
    0

    Default

    can you please supply another code sample for implement this tree in java i will be very happy if you help me with this

  6. #6
    fishtoprecords's Avatar
    fishtoprecords is offline Senior Member
    Join Date
    Jun 2008
    Posts
    571
    Rep Power
    7

Similar Threads

  1. Tree structure using JAVA
    By trill in forum Advanced Java
    Replies: 2
    Last Post: 05-27-2010, 12:02 PM
  2. Binary Tree Implementation in Java
    By Java Tip in forum java.lang
    Replies: 0
    Last Post: 04-16-2008, 11:35 PM
  3. Need Help With Tree Adt
    By avi in forum New To Java
    Replies: 0
    Last Post: 03-20-2008, 04:11 AM
  4. Java Grapical Tree
    By Deo Favente in forum Reviews / Advertising
    Replies: 3
    Last Post: 02-18-2008, 07:12 AM
  5. Implementing a red-black tree in java
    By baltazar in forum New To Java
    Replies: 1
    Last Post: 07-13-2007, 09:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •