This code is producing an endless loop:

```
        for (String element : friendSet) {
        resultNum ++;
        System.out.println("  Result # " + resultNum + " = " + element);
        System.out.print(" friendSet.size() = " + friendSet.size());
    }

```

friendSet.size() = 2923 but the results keep climbing to tens of thousands until I force the program to stop. For example:

```
friendSet.size() = 2923  Result # 7652 = Charlie
friendSet.size() = 2923  Result # 7653 = Jamie
friendSet.size() = 2923  Result # 7654 = Smith

```

What is going on?