Hello, I was reading a book and it says that when we want to add new Node that is not in the Head we have make a selection i.e. selection.addNodAfter(element), before we initiate our method. The question is where do i have to do this "selection"? in my main or how else do i implement it?
Thank you
grisha83 26 Junior Poster in Training
Recommended Answers
Jump to PostWhat? Be more specific and explain your problem fully
Jump to PostOk, now I understand. Imagine a Node that has two attributes. The first attribute will be the value, which is an Integer. The second attribute will be another Node. (This Node will be the 'next' node, which is what they are calling the link). So basically if you had four …
Jump to PostAll of this is do-able in one class. But I've seen the texts before, they usually do it using two classes. Good luck & mark this as solved if your question was answered
All 9 Replies
nabeel.alsafa 0 Newbie Poster
grisha83 26 Junior Poster in Training
BestJewSinceJC 700 Posting Maven
kvprajapati 1,826 Posting Genius Team Colleague
grisha83 26 Junior Poster in Training
BestJewSinceJC 700 Posting Maven
grisha83 26 Junior Poster in Training
grisha83 26 Junior Poster in Training
BestJewSinceJC 700 Posting Maven
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.