Page 1 of 1

Which is the new method introduced in java 8 to iterate over a collection?

Posted: Wed Jul 13, 2022 7:50 pm
by answerhappygod
a) for (String i : StringList)
b) foreach (String i : StringList)
c) StringList.forEach()
d) List.for()