java - custom linked list iteration -


i have java web app has save bunch of items user add cart display each item user added on jsp page. have custom made linked list called "cart" doesn't use library/api(whatever call it) practicing purpose. cart includes bunch of node , product e element of each node.

if node public outer class, can iterate using "node current" outside of class (i.e. main, other pages). if put node inline class people do, can't that. there way iterate through list without moving node outside?


Comments

Popular posts from this blog

java - How to print docx and pdf? -

c# - How to use process.StartInfo.Arguments in command prompt? -

qml - Is it possible to implement SystemTrayIcon functionality in Qt Quick application -