[Solved] (Java) How to loop through the content of an array? [closed]


The proper syntax for this kind of for loop is

for(String name : family)

Instead of what you have

for(String name = family)

1

solved (Java) How to loop through the content of an array? [closed]