I stuck at the following problem: I have these input file, and I have to restore the tree schema from it. I'm new in java, I had read a lot and I have seriously difficulties with this task. Please give me some ideas to help. Thanks in advance!
And now the following file: http://universumerp.com/sites/default/files/treedata.txt
And once again THANK YOU!
From the file I can say that data represent comma separated values id,parantId,value
From the first look I thought that third value is a flag 'hasChild' but it is not. So I decide count on id and parentId.
On my opinion you need to do the next steps
Finally
It is could be done better but this is all depends on your needs.