You can declare a String variable and append the summary details(whatever it may be) to it for every item inside the loop.

Then you can print the variable outside the loop to view the summary of all the items.
Stormstreet like this