How to access values of a list of lists?

I have a list of lists of the type List<<List<PathInfo>>.How do I get the values of each list within this linked list separately?


I mean I want the elements of each separately.
LVL 1
akashsureshAsked:
Who is Participating?
 
Mike TomlinsonConnect With a Mentor Middle School Assistant TeacherCommented:
*I haven't programmed in Java in years, but based on examples from the web, try:
for (List<PathInfo> PathInfoList : ListOfLists) {
    for (PathInfo PI : PathInfoList) {
        ... do something with "PI" ...
    }
}

Open in new window


Is that what you're asking?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.