How would you track two average points? (Shiffman tutorial)

Hello there!

How would you guys track two (or multiple) average points instead of one as shown in the Shiffman video below? I have tried a lot of things but cannot seem to find the solution!

Video:

Code:

Thousand times thanks to whomever can help me!

1 Like

In general you’re probably looking for arrays or ArrayLists.

Shameless self-promotion:

3 Likes

Thank you for your response. You have a cool website and I’m going to try to look through it. However, I realize that I can use Arrays or ArrayLists to store the multiple average points. The question is how I can start tracking multiple points? How do I tell my program that if has found one average point that is to start looking for another, in a different location even when it might be close by?