I have created a program to spawn a number of points (the number is given by the user). 

Therefore the program spawns N points  

*see the image for an example, it has 3 points in that case* ![](https://i.imgur.com/ITGOsES.png)

What I need is to get all the possible distances between those villages (In the example it's distance: AB, AC, BC).

The points are stored in a single array (that scores x-coordinate and y-coordinate)

```
List<Villages>

```

I know that I new Pythagoras Theorem, I just cannot get the foreach loop right.