You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For page 7 in lecture 11, some alternative ways are provided to replace forEach(), can someone give some example on how we should use forEachOrdered and CopyOnWriteArrayList. By the way, may I clarify that does the encountered order mean the order of elements being passed into the function?
Screenshots (if any):
The text was updated successfully, but these errors were encountered:
Encounter order is the order in which the Stream encounters data. So, it is wrong to say it is the order in which the elements are added into the function.
Summary
For page 7 in lecture 11, some alternative ways are provided to replace forEach(), can someone give some example on how we should use forEachOrdered and CopyOnWriteArrayList. By the way, may I clarify that does the encountered order mean the order of elements being passed into the function?
Screenshots (if any):
The text was updated successfully, but these errors were encountered: