About 50 results
Open links in new tab
  1. How to implement a tree data-structure in Java? - Stack Overflow

    Dec 19, 2019 · Is there any standard Java library class to represent a tree in Java? Specifically I need to represent the following: The sub-tree at any node can have an arbitrary number of children Each …

  2. Tree implementation in Java (root, parents and children)

    Oct 12, 2013 · 40 I need to create a tree structure similar as the attached image in Java. I've found some questions related to this one but I haven't found a convincing and well explained response. …

  3. java - Tree data structure implementation - Stack Overflow

    Apr 14, 2021 · a tree structure is a bit different from the list implementation... i recommend you to see this topic if you just want the code, if your focus question isn't how to do if but how does they work, i …

  4. Generic tree implementation in Java - Stack Overflow

    Aug 31, 2009 · 8 It's rather hard to do a true generic tree implementation in Java that really separated the tree operations and properties from the underlying implementations, i.e. swap in a …

  5. data structures - Represent tree hierarchy in java - Stack Overflow

    Java tree data-structure? Basically, there is nothing in the standard libs that offers a Tree representation out of the box, except for the JTree in the swing package.

  6. Best way of implementing a family tree in Java using a data structure ...

    Apr 12, 2017 · Thanks for your input! I wanted to produce a tree of some sort data-structure entity that would contain information about a node and possess more than 2 children nodes, unlike the BInary …

  7. How to display tree hierarchy in Java? - Stack Overflow

    Mar 17, 2017 · 2 Re Q1: You could find on internet resources several Java implementations of Tree structure, for example this generic tree. Re Q2: One alternative is using JTree. Check the Java …

  8. Why Java Collection Framework doesn't contain Tree and Graph

    Feb 12, 2011 · I am familiar with Java Collection Framework which contains basic interfaces: Collection and Map. I am wondering why the Framework doesn't contain structures as Tree and Graph which …

  9. Flatmaping a n-order tree structure : Java Streams [duplicate]

    Jan 14, 2019 · Suppose I have a non-binary tree structure (each node may have n child nodes). In that sense, what could be a good method for flattening the whole tree into a single list using java …

  10. Java Tree String Data-Structure - Stack Overflow

    Jan 16, 2012 · Java Tree String Data-Structure Asked 13 years, 10 months ago Modified 7 years, 10 months ago Viewed 24k times