a) for (String i : StringList)
b) foreach (String i : StringList)
c) StringList.forEach()
d) List.for()
Which is the new method introduced in java 8 to iterate over a collection?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Which is the new method introduced in java 8 to iterate over a collection?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!