Apologies yes, I was away with the fairies when I read your post.
A basic way to accomplish what you need is to use more variables, which you also print, then add to final tally, before resetting...
Type: Posts; User: newbie
Apologies yes, I was away with the fairies when I read your post.
A basic way to accomplish what you need is to use more variables, which you also print, then add to final tally, before resetting...
Glad you solved it, and thanks for sharing your solution jhnhskll.
Could follow the approach you've already been following, but enclose all of it in a for loop. You could then do String str = args[indexOfEnclosingLoop];.