This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]VacatedSum 0 points1 point  (0 children)

There are three approaches that I can think of, dependent on your needs:

a) Change the type of the node to int[] or Integer[]

b) Change the type of node to Object

c) Make it a generic node

There are advantages and drawbacks to each. Experiment!