What does : operator mean in the for loop in the context of the code below?
Pond[] ponds = {new Ocean(), new Pond(), new Lake(), new Bay()};
for (Pond p : ponds) {
p.method1();
System.out.println();
p.method2();
On the web it says that : is a ternary operator, but I don't see how it would apply in this case.