I've formed a link list to contain data,the structure is
public String data;
public NODE pre,next,sub;
It is like a link that each node has three points
a link is like:
I've formed a link like that by programming, but now I don't know how to output the data in order like the numbers above. Really confused by how to form the cycle. Hope anyone whos interested in this or had experience in this type of link structure can give me a hand.