This repository was archived by the owner on Feb 25, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/main/java/java9/util/stream Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 4343 * <p>The key abstraction introduced in this package is <em>stream</em>. The
4444 * classes {@link java9.util.stream.Stream}, {@link java9.util.stream.IntStream},
4545 * {@link java9.util.stream.LongStream}, and {@link java9.util.stream.DoubleStream}
46- * are streams over objects and the primitive {@code int}, {@code long} and
46+ * are streams over objects and the primitive {@code int}, {@code long}, and
4747 * {@code double} types. Streams differ from collections in several ways:
4848 *
4949 * <ul>
242242 * String s = sl.collect(joining(" "));
243243 * }</pre>
244244 *
245- * First a list is created consisting of two strings: "one"; and "two". Then a
245+ * First a list is created consisting of two strings: "one" and "two". Then a
246246 * stream is created from that list. Next the list is modified by adding a third
247247 * string: "three". Finally the elements of the stream are collected and joined
248248 * together. Since the list was modified before the terminal {@code collect}
344344 * parallelization:
345345 *
346346 * <pre>{@code
347- * List<String>results =
347+ * List<String> results =
348348 * stream.filter(s -> pattern.matcher(s).matches())
349349 * .collect(Collectors.toList()); // No side-effects!
350350 * }</pre>
You can’t perform that action at this time.
0 commit comments