Java - Streams: Difference between revisions
From My Limbic Wiki
(→A voir) |
|||
Line 1: | Line 1: | ||
=Collections= | =Collections= | ||
<source lang="Java"> | |||
Student student; | |||
Iterator iterator = collection.iterator(); | |||
while (iterator.hasNext()) { | |||
student = (Student)(iterator.next()); | |||
System.out.println(student.getFullName()); | |||
} | |||
</source> | |||
=A voir= | =A voir= | ||
* Parallel stream | * Parallel stream |
Revision as of 16:14, 18 October 2019
Collections
<source lang="Java"> Student student; Iterator iterator = collection.iterator(); while (iterator.hasNext()) {
student = (Student)(iterator.next()); System.out.println(student.getFullName());
} </source>
A voir
- Parallel stream