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
  • 27,856
  • 27
  • 95
  • 103

0 Answers0