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

html - jquery - p element wont show after I hid it -

python - BeautifulSoup: How to get the nearest tag -

php - Return Last Insert ID with PDO -