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
Post a Comment