0

I would like to create a new Data Structure with Java using only arrays. It's a tree of Nodes and every Node has as parameters :

  • a parent (node)
  • children (a Array of Nodes)
  • a letter (Char)
  • a number (int)

Every Node has a method setChild for adding a new Child. I don't know how to code the constructor and the method setChild of this Class Node. I'm very confused with this Data Structure.

Vega
  • 25,886
  • 26
  • 85
  • 95

0 Answers0