{"id":923260,"date":"2024-07-18T06:11:24","date_gmt":"2024-07-18T06:11:24","guid":{"rendered":"https:\/\/proxyelite.info\/?p=923260"},"modified":"2024-07-10T06:23:35","modified_gmt":"2024-07-10T06:23:35","slug":"mastering-the-java-8-stream-api-a-comprehensive-guide","status":"publish","type":"post","link":"https:\/\/proxyelite.info\/uk\/mastering-the-java-8-stream-api-a-comprehensive-guide\/","title":{"rendered":"\u041e\u0441\u0432\u043e\u0454\u043d\u043d\u044f Java 8 Stream API: \u0432\u0438\u0447\u0435\u0440\u043f\u043d\u0438\u0439 \u043f\u043e\u0441\u0456\u0431\u043d\u0438\u043a"},"content":{"rendered":"<h3 class=\"wp-block-heading\">\u0429\u043e \u0442\u0430\u043a\u0435 Java 8 Stream API \u0456 \u044f\u043a \u0432\u0456\u043d \u043c\u043e\u0436\u0435 \u0442\u0440\u0430\u043d\u0441\u0444\u043e\u0440\u043c\u0443\u0432\u0430\u0442\u0438 \u0432\u0430\u0448 \u043a\u043e\u0434?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Java 8 Stream API \u043a\u0430\u0440\u0434\u0438\u043d\u0430\u043b\u044c\u043d\u043e \u0437\u043c\u0456\u043d\u044e\u0454 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0433\u0440\u0438 \u0434\u043b\u044f \u0440\u043e\u0437\u0440\u043e\u0431\u043d\u0438\u043a\u0456\u0432 Java, \u043f\u0440\u043e\u043f\u043e\u043d\u0443\u044e\u0447\u0438 \u043d\u043e\u0432\u0438\u0439 \u0441\u043f\u043e\u0441\u0456\u0431 \u0434\u0435\u043a\u043b\u0430\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u0457 \u0442\u0430 \u0435\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0457 \u043e\u0431\u0440\u043e\u0431\u043a\u0438 \u0434\u0430\u043d\u0438\u0445. \u0426\u0435\u0439 \u043f\u0456\u0434\u0440\u0443\u0447\u043d\u0438\u043a \u043f\u0440\u043e\u0432\u0435\u0434\u0435 \u0432\u0430\u0441 \u0447\u0435\u0440\u0435\u0437 \u0442\u043e\u043d\u043a\u043e\u0449\u0456 Stream API, \u0434\u043e\u043f\u043e\u043c\u043e\u0436\u0435 \u0432\u0430\u043c \u0437\u0440\u043e\u0437\u0443\u043c\u0456\u0442\u0438 \u0439\u043e\u0433\u043e \u043f\u043e\u0442\u0443\u0436\u043d\u0456 \u0444\u0443\u043d\u043a\u0446\u0456\u0457 \u0442\u0430 \u0442\u0435, \u044f\u043a \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u0457\u0445 \u0443 \u0441\u0432\u043e\u0454\u043c\u0443 \u043a\u043e\u0434\u0456.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u0417\u043c\u0456\u0441\u0442<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u0420\u043e\u0437\u0434\u0456\u043b<\/th><th>\u043e\u043f\u0438\u0441<\/th><\/tr><\/thead><tbody><tr><td>\u0432\u0441\u0442\u0443\u043f<\/td><td>\u041e\u0433\u043b\u044f\u0434 Java 8 Stream API<\/td><\/tr><tr><td>\u0421\u0442\u0432\u043e\u0440\u0435\u043d\u043d\u044f \u043f\u043e\u0442\u043e\u043a\u0443<\/td><td>\u0420\u0456\u0437\u043d\u0456 \u0441\u043f\u043e\u0441\u043e\u0431\u0438 \u0441\u0442\u0432\u043e\u0440\u0435\u043d\u043d\u044f \u043f\u043e\u0442\u043e\u043a\u0456\u0432<\/td><\/tr><tr><td>\u041f\u0440\u043e\u043c\u0456\u0436\u043d\u0456 \u043e\u043f\u0435\u0440\u0430\u0446\u0456\u0457<\/td><td>\u041f\u043e\u044f\u0441\u043d\u0435\u043d\u043d\u044f \u0440\u0456\u0437\u043d\u0438\u0445 \u043f\u0440\u043e\u043c\u0456\u0436\u043d\u0438\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0456\u0439<\/td><\/tr><tr><td>\u0422\u0435\u0440\u043c\u0456\u043d\u0430\u043b\u044c\u043d\u0456 \u043e\u043f\u0435\u0440\u0430\u0446\u0456\u0457<\/td><td>\u041e\u0433\u043b\u044f\u0434 \u0442\u0435\u0440\u043c\u0456\u043d\u0430\u043b\u044c\u043d\u0438\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0456\u0439 \u0442\u0430 \u0457\u0445 \u0435\u0444\u0435\u043a\u0442\u0456\u0432<\/td><\/tr><tr><td>\u041f\u0430\u0440\u0430\u043b\u0435\u043b\u044c\u043d\u0456 \u043f\u043e\u0442\u043e\u043a\u0438<\/td><td>\u042f\u043a \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u043f\u0430\u0440\u0430\u043b\u0435\u043b\u044c\u043d\u0456 \u043f\u043e\u0442\u043e\u043a\u0438 \u0434\u043b\u044f \u043a\u0440\u0430\u0449\u043e\u0457 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0456<\/td><\/tr><tr><td>\u041f\u0440\u0430\u043a\u0442\u0438\u0447\u043d\u0456 \u043f\u0440\u0438\u043a\u043b\u0430\u0434\u0438<\/td><td>\u041f\u0440\u0438\u043a\u043b\u0430\u0434\u0438 \u043a\u043e\u0434\u0443, \u0449\u043e \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0443\u044e\u0442\u044c \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u0430\u043d\u043d\u044f Stream API<\/td><\/tr><tr><td>\u041f\u0435\u0440\u0435\u0432\u0430\u0433\u0438 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u0430\u043d\u043d\u044f Stream API<\/td><td>\u041f\u0435\u0440\u0435\u0432\u0430\u0433\u0438 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u0430\u043d\u043d\u044f Stream API \u0443 \u0440\u043e\u0437\u0440\u043e\u0431\u0446\u0456 Java<\/td><\/tr><tr><td>\u041f\u043e\u0448\u0438\u0440\u0435\u043d\u0456 \u043f\u0456\u0434\u0432\u043e\u0434\u043d\u0456 \u043a\u0430\u043c\u0435\u043d\u0456<\/td><td>\u041f\u043e\u0448\u0438\u0440\u0435\u043d\u0456 \u043f\u043e\u043c\u0438\u043b\u043a\u0438 \u0442\u0430 \u044f\u043a \u0457\u0445 \u0443\u043d\u0438\u043a\u043d\u0443\u0442\u0438<\/td><\/tr><tr><td>\u0412\u0438\u0441\u043d\u043e\u0432\u043e\u043a<\/td><td>\u041f\u0456\u0434\u0441\u0443\u043c\u043e\u043a \u043a\u043b\u044e\u0447\u043e\u0432\u0438\u0445 \u043c\u043e\u043c\u0435\u043d\u0442\u0456\u0432 \u0456 \u0437\u0430\u043a\u043b\u044e\u0447\u043d\u0456 \u0434\u0443\u043c\u043a\u0438<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u0432\u0441\u0442\u0443\u043f<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Java 8 \u043f\u0440\u0438\u0432\u043d\u0435\u0441\u043b\u0430 \u0432 \u043c\u043e\u0432\u0443 \u0431\u0435\u0437\u043b\u0456\u0447 \u043d\u043e\u0432\u0438\u0445 \u0444\u0443\u043d\u043a\u0446\u0456\u0439, \u0430\u043b\u0435 \u043e\u0434\u043d\u0456\u0454\u044e \u0437 \u043d\u0430\u0439\u0432\u043f\u043b\u0438\u0432\u043e\u0432\u0456\u0448\u0438\u0445 \u0441\u0442\u0430\u0432 Stream API. \u0426\u0435\u0439 API \u0437\u0430\u0431\u0435\u0437\u043f\u0435\u0447\u0443\u0454 \u0444\u0443\u043d\u043a\u0446\u0456\u043e\u043d\u0430\u043b\u044c\u043d\u0438\u0439 \u043f\u0456\u0434\u0445\u0456\u0434 \u0434\u043e \u043e\u0431\u0440\u043e\u0431\u043a\u0438 \u043f\u043e\u0441\u043b\u0456\u0434\u043e\u0432\u043d\u043e\u0441\u0442\u0435\u0439 \u0435\u043b\u0435\u043c\u0435\u043d\u0442\u0456\u0432, \u0434\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0447\u0438 \u0440\u043e\u0437\u0440\u043e\u0431\u043d\u0438\u043a\u0430\u043c \u043f\u0438\u0441\u0430\u0442\u0438 \u0431\u0456\u043b\u044c\u0448 \u0441\u0442\u0438\u0441\u043b\u0438\u0439 \u0456 \u0447\u0438\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u0438\u0439 \u043a\u043e\u0434. \u041f\u043e\u0442\u043e\u043a\u0438 \u043d\u0435 \u0454 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430\u043c\u0438 \u0434\u0430\u043d\u0438\u0445; \u0446\u0435 \u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0446\u0456\u0457, \u044f\u043a\u0456 \u0434\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442\u044c \u043e\u0431\u0440\u043e\u0431\u043b\u044f\u0442\u0438 \u0434\u0430\u043d\u0456 \u0434\u0435\u043a\u043b\u0430\u0440\u0430\u0442\u0438\u0432\u043d\u0438\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u0421\u0442\u0432\u043e\u0440\u0435\u043d\u043d\u044f \u043f\u043e\u0442\u043e\u043a\u0443<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u041f\u043e\u0442\u043e\u043a\u0438 \u043c\u043e\u0436\u043d\u0430 \u0441\u0442\u0432\u043e\u0440\u044e\u0432\u0430\u0442\u0438 \u0437 \u0440\u0456\u0437\u043d\u0438\u0445 \u0434\u0436\u0435\u0440\u0435\u043b \u0434\u0430\u043d\u0438\u0445, \u0442\u0430\u043a\u0438\u0445 \u044f\u043a \u043a\u043e\u043b\u0435\u043a\u0446\u0456\u0457, \u043c\u0430\u0441\u0438\u0432\u0438 \u0430\u0431\u043e \u043a\u0430\u043d\u0430\u043b\u0438 \u0432\u0432\u0435\u0434\u0435\u043d\u043d\u044f\/\u0432\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u044f. \u041e\u0441\u044c \u043a\u0456\u043b\u044c\u043a\u0430 \u043f\u043e\u0448\u0438\u0440\u0435\u043d\u0438\u0445 \u0441\u043f\u043e\u0441\u043e\u0431\u0456\u0432 \u0441\u0442\u0432\u043e\u0440\u0435\u043d\u043d\u044f \u043f\u043e\u0442\u043e\u043a\u0456\u0432:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u0417 \u043a\u043e\u043b\u0435\u043a\u0446\u0456\u0439<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u0412\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u0442\u0432\u043e\u0440\u0438\u0442\u0438 \u043f\u043e\u0442\u0456\u043a \u0437 \u0431\u0443\u0434\u044c-\u044f\u043a\u043e\u0457 \u043a\u043e\u043b\u0435\u043a\u0446\u0456\u0457 (\u043d\u0430\u043f\u0440\u0438\u043a\u043b\u0430\u0434, \u0441\u043f\u0438\u0441\u043a\u0443, \u043d\u0430\u0431\u043e\u0440\u0443).<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code data-no-translation=\"\">List&lt;String&gt; list = Arrays.asList(&quot;a&quot;, &quot;b&quot;, &quot;c&quot;);\nStream&lt;String&gt; stream = list.stream();\n<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u0417 \u043c\u0430\u0441\u0438\u0432\u0456\u0432<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u0412\u0438 \u0442\u0430\u043a\u043e\u0436 \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u0442\u0432\u043e\u0440\u0438\u0442\u0438 \u043f\u043e\u0442\u0456\u043a \u0437 \u043c\u0430\u0441\u0438\u0432\u0443.<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code data-no-translation=\"\">String[] array = {&quot;a&quot;, &quot;b&quot;, &quot;c&quot;};\nStream&lt;String&gt; stream = Arrays.stream(array);\n<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u0417 \u0444\u0430\u0439\u043b\u0456\u0432<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Java NIO \u043d\u0430\u0434\u0430\u0454 \u043c\u0435\u0442\u043e\u0434 \u0441\u0442\u0432\u043e\u0440\u0435\u043d\u043d\u044f \u043f\u043e\u0442\u043e\u043a\u0443 \u0437 \u0444\u0430\u0439\u043b\u0443.<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code data-no-translation=\"\">Stream&lt;String&gt; lines = Files.lines(Paths.get(&quot;file.txt&quot;));\n<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u041d\u0435\u0441\u043a\u0456\u043d\u0447\u0435\u043d\u043d\u0456 \u043f\u043e\u0442\u043e\u043a\u0438<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u0412\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u0442\u0432\u043e\u0440\u044e\u0432\u0430\u0442\u0438 \u043d\u0435\u0441\u043a\u0456\u043d\u0447\u0435\u043d\u043d\u0456 \u043f\u043e\u0442\u043e\u043a\u0438 \u0437\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e <code data-no-translation=\"\">Stream.generate<\/code> \u0430\u0431\u043e <code data-no-translation=\"\">Stream.iterate<\/code>.<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code data-no-translation=\"\">Stream&lt;Integer&gt; infiniteStream = Stream.iterate(0, n -&gt; n + 1);\n<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">\u041f\u0440\u043e\u043c\u0456\u0436\u043d\u0456 \u043e\u043f\u0435\u0440\u0430\u0446\u0456\u0457<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u041f\u0440\u043e\u043c\u0456\u0436\u043d\u0456 \u043e\u043f\u0435\u0440\u0430\u0446\u0456\u0457 \u043f\u043e\u0432\u0435\u0440\u0442\u0430\u044e\u0442\u044c \u043d\u043e\u0432\u0438\u0439 \u043f\u043e\u0442\u0456\u043a \u0456 \u0432\u0438\u043a\u043e\u043d\u0443\u044e\u0442\u044c\u0441\u044f \u043b\u0456\u043d\u0438\u0432\u043e, \u0442\u043e\u0431\u0442\u043e \u043d\u0435 \u0432\u0438\u043a\u043e\u043d\u0443\u044e\u0442\u044c\u0441\u044f, \u0434\u043e\u043a\u0438 \u043d\u0435 \u0431\u0443\u0434\u0435 \u0432\u0438\u043a\u043b\u0438\u043a\u0430\u043d\u0430 \u043e\u043f\u0435\u0440\u0430\u0446\u0456\u044f \u0442\u0435\u0440\u043c\u0456\u043d\u0430\u043b\u0443. \u0412\u043e\u043d\u0438 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u044e\u0442\u044c\u0441\u044f \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0442\u0432\u043e\u0440\u0435\u043d\u043d\u044f \u0430\u0431\u043e \u0444\u0456\u043b\u044c\u0442\u0440\u0430\u0446\u0456\u0457 \u0434\u0430\u043d\u0438\u0445.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u0444\u0456\u043b\u044c\u0442\u0440<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u0424\u0456\u043b\u044c\u0442\u0440\u0443\u0454 \u0435\u043b\u0435\u043c\u0435\u043d\u0442\u0438 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0456 \u0443\u043c\u043e\u0432\u0438.<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code data-no-translation=\"\">Stream&lt;String&gt; filteredStream = stream.filter(s -&gt; s.startsWith(&quot;a&quot;));\n<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u041a\u0430\u0440\u0442\u0430<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u0422\u0440\u0430\u043d\u0441\u0444\u043e\u0440\u043c\u0443\u0454 \u0435\u043b\u0435\u043c\u0435\u043d\u0442\u0438.<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code data-no-translation=\"\">Stream&lt;Integer&gt; lengthStream = stream.map(String::length);\n<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">FlatMap<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u0412\u0438\u0440\u0456\u0432\u043d\u044e\u0454 \u0432\u043a\u043b\u0430\u0434\u0435\u043d\u0456 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0438.<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code data-no-translation=\"\">Stream&lt;String&gt; flatMappedStream = stream.flatMap(s -&gt; Arrays.stream(s.split(&quot;&quot;)));\n<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u0412\u0456\u0434\u0441\u043e\u0440\u0442\u043e\u0432\u0430\u043d\u043e<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u0421\u043e\u0440\u0442\u0443\u0454 \u0435\u043b\u0435\u043c\u0435\u043d\u0442\u0438.<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code data-no-translation=\"\">Stream&lt;String&gt; sortedStream = stream.sorted();\n<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u0412\u0438\u0440\u0430\u0437\u043d\u0438\u0439<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u0412\u0438\u0434\u0430\u043b\u044f\u0454 \u043f\u043e\u0432\u0442\u043e\u0440\u044e\u0432\u0430\u043d\u0456 \u0435\u043b\u0435\u043c\u0435\u043d\u0442\u0438.<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code data-no-translation=\"\">Stream&lt;String&gt; distinctStream = stream.distinct();\n<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u041e\u0431\u043c\u0435\u0436\u0435\u043d\u043d\u044f \u0442\u0430 \u043f\u0440\u043e\u043f\u0443\u0441\u043a<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u0421\u043a\u043e\u0440\u043e\u0447\u0443\u0454 \u043f\u043e\u0442\u0456\u043a \u0434\u043e \u0437\u0430\u0434\u0430\u043d\u043e\u0457 \u043a\u0456\u043b\u044c\u043a\u043e\u0441\u0442\u0456 \u0435\u043b\u0435\u043c\u0435\u043d\u0442\u0456\u0432 \u0430\u0431\u043e \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u0454 \u043f\u0435\u0440\u0448\u0456 n \u0435\u043b\u0435\u043c\u0435\u043d\u0442\u0456\u0432.<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code data-no-translation=\"\">Stream&lt;String&gt; limitedStream = stream.limit(2);\nStream&lt;String&gt; skippedStream = stream.skip(2);\n<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">\u0422\u0435\u0440\u043c\u0456\u043d\u0430\u043b\u044c\u043d\u0456 \u043e\u043f\u0435\u0440\u0430\u0446\u0456\u0457<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u0422\u0435\u0440\u043c\u0456\u043d\u0430\u043b\u044c\u043d\u0456 \u043e\u043f\u0435\u0440\u0430\u0446\u0456\u0457 \u0441\u0442\u0432\u043e\u0440\u044e\u044e\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0430\u0431\u043e \u043f\u043e\u0431\u0456\u0447\u043d\u0438\u0439 \u0435\u0444\u0435\u043a\u0442 \u0456 \u043f\u043e\u0437\u043d\u0430\u0447\u0430\u044e\u0442\u044c \u043a\u0456\u043d\u0435\u0446\u044c \u043e\u0431\u0440\u043e\u0431\u043a\u0438 \u043f\u043e\u0442\u043e\u043a\u0443. \u041f\u0456\u0441\u043b\u044f \u0432\u0438\u043a\u043e\u043d\u0430\u043d\u043d\u044f \u0442\u0435\u0440\u043c\u0456\u043d\u0430\u043b\u044c\u043d\u043e\u0457 \u043e\u043f\u0435\u0440\u0430\u0446\u0456\u0457 \u043f\u043e\u0442\u0456\u043a \u0431\u0456\u043b\u044c\u0448\u0435 \u043d\u0435 \u043c\u043e\u0436\u043d\u0430 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u0434\u043b\u044f \u043a\u043e\u0436\u043d\u043e\u0433\u043e<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u0412\u0438\u043a\u043e\u043d\u0443\u0454 \u0434\u0456\u044e \u0434\u043b\u044f \u043a\u043e\u0436\u043d\u043e\u0433\u043e \u0435\u043b\u0435\u043c\u0435\u043d\u0442\u0430.<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code data-no-translation=\"\">stream.forEach(System.out::println);\n<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u0417\u0431\u0438\u0440\u0430\u0442\u0438<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u041f\u0435\u0440\u0435\u0442\u0432\u043e\u0440\u044e\u0454 \u043f\u043e\u0442\u0456\u043a \u0443 \u043a\u043e\u043b\u0435\u043a\u0446\u0456\u044e \u0447\u0438 \u0456\u043d\u0448\u0443 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0434\u0430\u043d\u0438\u0445.<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code data-no-translation=\"\">List&lt;String&gt; list = stream.collect(Collectors.toList());\n<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u0417\u043c\u0435\u043d\u0448\u0438\u0442\u0438<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u0417\u043c\u0435\u043d\u0448\u0443\u0454 \u043f\u043e\u0442\u0456\u043a \u0434\u043e \u043e\u0434\u043d\u043e\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f.<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code data-no-translation=\"\">Optional&lt;String&gt; concatenated = stream.reduce((s1, s2) -&gt; s1 + s2);\n<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u0420\u0430\u0445\u0443\u0432\u0430\u0442\u0438<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u041f\u043e\u0432\u0435\u0440\u0442\u0430\u0454 \u043a\u0456\u043b\u044c\u043a\u0456\u0441\u0442\u044c \u0435\u043b\u0435\u043c\u0435\u043d\u0442\u0456\u0432.<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code data-no-translation=\"\">long count = stream.count();\n<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u041c\u0430\u0442\u0447 \u041e\u043f\u0435\u0440\u0430\u0446\u0456\u0457<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u041f\u0435\u0440\u0435\u0432\u0456\u0440\u044f\u0454, \u0447\u0438 \u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u0430\u0454 \u0431\u0443\u0434\u044c-\u044f\u043a\u0438\u0439, \u0443\u0441\u0456 \u0430\u0431\u043e \u0436\u043e\u0434\u0435\u043d \u0437 \u0435\u043b\u0435\u043c\u0435\u043d\u0442\u0456\u0432 \u0434\u0430\u043d\u043e\u043c\u0443 \u043f\u0440\u0435\u0434\u0438\u043a\u0430\u0442\u0443.<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code data-no-translation=\"\">boolean anyMatch = stream.anyMatch(s -&gt; s.startsWith(&quot;a&quot;));\nboolean allMatch = stream.allMatch(s -&gt; s.length() &gt; 1);\nboolean noneMatch = stream.noneMatch(s -&gt; s.isEmpty());\n<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u0417\u043d\u0430\u0439\u0442\u0438 \u043f\u0435\u0440\u0448\u0438\u0439 \u0456 \u0437\u043d\u0430\u0439\u0442\u0438 \u0431\u0443\u0434\u044c-\u044f\u043a\u0438\u0439<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u041f\u043e\u0432\u0435\u0440\u0442\u0430\u0454 \u043f\u0435\u0440\u0448\u0438\u0439 \u0430\u0431\u043e \u0431\u0443\u0434\u044c-\u044f\u043a\u0438\u0439 \u0435\u043b\u0435\u043c\u0435\u043d\u0442 \u0456\u0437 \u043f\u043e\u0442\u043e\u043a\u0443.<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code data-no-translation=\"\">Optional&lt;String&gt; first = stream.findFirst();\nOptional&lt;String&gt; any = stream.findAny();\n<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">\u041f\u0430\u0440\u0430\u043b\u0435\u043b\u044c\u043d\u0456 \u043f\u043e\u0442\u043e\u043a\u0438<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u041f\u043e\u0442\u043e\u043a\u0438 \u043c\u043e\u0436\u043d\u0430 \u043b\u0435\u0433\u043a\u043e \u043f\u0435\u0440\u0435\u0442\u0432\u043e\u0440\u0438\u0442\u0438 \u043d\u0430 \u043f\u0430\u0440\u0430\u043b\u0435\u043b\u044c\u043d\u0456 \u043f\u043e\u0442\u043e\u043a\u0438, \u0449\u043e\u0431 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u0431\u0430\u0433\u0430\u0442\u043e\u044f\u0434\u0435\u0440\u043d\u0456 \u043f\u0440\u043e\u0446\u0435\u0441\u043e\u0440\u0438 \u0442\u0430 \u0432\u0438\u043a\u043e\u043d\u0443\u0432\u0430\u0442\u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0456\u0457 \u043e\u0434\u043d\u043e\u0447\u0430\u0441\u043d\u043e.<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code data-no-translation=\"\">Stream&lt;String&gt; parallelStream = list.parallelStream();\n<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u041f\u0430\u0440\u0430\u043b\u0435\u043b\u044c\u043d\u0456 \u043f\u043e\u0442\u043e\u043a\u0438 \u043c\u043e\u0436\u0443\u0442\u044c \u0437\u043d\u0430\u0447\u043d\u043e \u043f\u0456\u0434\u0432\u0438\u0449\u0438\u0442\u0438 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0438\u0432\u043d\u0456\u0441\u0442\u044c \u0434\u043b\u044f \u0432\u0435\u043b\u0438\u043a\u0438\u0445 \u043d\u0430\u0431\u043e\u0440\u0456\u0432 \u0434\u0430\u043d\u0438\u0445, \u0430\u043b\u0435 \u0457\u0445 \u0441\u043b\u0456\u0434 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u0437 \u043e\u0431\u0435\u0440\u0435\u0436\u043d\u0456\u0441\u0442\u044e, \u0449\u043e\u0431 \u0443\u043d\u0438\u043a\u043d\u0443\u0442\u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0456\u0437 \u043f\u0430\u0440\u0430\u043b\u0435\u043b\u0456\u0437\u043c\u043e\u043c.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u041f\u0440\u0430\u043a\u0442\u0438\u0447\u043d\u0456 \u043f\u0440\u0438\u043a\u043b\u0430\u0434\u0438<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u041f\u0440\u0438\u043a\u043b\u0430\u0434 1: \u0444\u0456\u043b\u044c\u0442\u0440 \u0456 \u0437\u0431\u0456\u0440<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0432\u0456\u0434\u0444\u0456\u043b\u044c\u0442\u0440\u0443\u0454\u043c\u043e \u0441\u043f\u0438\u0441\u043e\u043a \u0440\u044f\u0434\u043a\u0456\u0432, \u0449\u043e\u0431 \u0437\u043d\u0430\u0439\u0442\u0438 \u0442\u0456, \u0449\u043e \u043f\u043e\u0447\u0438\u043d\u0430\u044e\u0442\u044c\u0441\u044f \u0437 \u00aba\u00bb, \u0456 \u0437\u0431\u0435\u0440\u0435\u043c\u043e \u0457\u0445 \u0443 \u043d\u043e\u0432\u0438\u0439 \u0441\u043f\u0438\u0441\u043e\u043a.<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code data-no-translation=\"\">List&lt;String&gt; result = list.stream()\n    .filter(s -&gt; s.startsWith(&quot;a&quot;))\n    .collect(Collectors.toList());\n<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u041f\u0440\u0438\u043a\u043b\u0430\u0434 2: \u0437\u0456\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044f \u0442\u0430 \u0437\u043c\u0435\u043d\u0448\u0435\u043d\u043d\u044f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u041f\u0435\u0440\u0435\u0442\u0432\u043e\u0440\u0456\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u0440\u044f\u0434\u043a\u0456\u0432 \u0443 \u0432\u0435\u0440\u0445\u043d\u0456\u0439 \u0440\u0435\u0433\u0456\u0441\u0442\u0440 \u0456 \u043e\u0431\u2019\u0454\u0434\u043d\u0430\u0439\u0442\u0435 \u0457\u0445.<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code data-no-translation=\"\">Optional&lt;String&gt; result = list.stream()\n    .map(String::toUpperCase)\n    .reduce((s1, s2) -&gt; s1 + s2);\n<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u041f\u0440\u0438\u043a\u043b\u0430\u0434 3: \u0421\u043e\u0440\u0442\u0443\u0432\u0430\u043d\u043d\u044f \u0442\u0430 \u043e\u0431\u043c\u0435\u0436\u0435\u043d\u043d\u044f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u0412\u0456\u0434\u0441\u043e\u0440\u0442\u0443\u0439\u0442\u0435 \u0441\u043f\u0438\u0441\u043e\u043a \u0440\u044f\u0434\u043a\u0456\u0432 \u0456 \u043e\u0442\u0440\u0438\u043c\u0430\u0439\u0442\u0435 \u043f\u0435\u0440\u0448\u0456 3 \u0435\u043b\u0435\u043c\u0435\u043d\u0442\u0438.<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code data-no-translation=\"\">List&lt;String&gt; result = list.stream()\n    .sorted()\n    .limit(3)\n    .collect(Collectors.toList());\n<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">\u041f\u0435\u0440\u0435\u0432\u0430\u0433\u0438 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u0430\u043d\u043d\u044f Stream API<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u0421\u0442\u0438\u0441\u043b\u0438\u0439 \u043a\u043e\u0434\u0435\u043a\u0441<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Stream API \u0434\u043e\u0437\u0432\u043e\u043b\u044f\u0454 \u0441\u0442\u0432\u043e\u0440\u0438\u0442\u0438 \u0431\u0456\u043b\u044c\u0448 \u0441\u0442\u0438\u0441\u043b\u0438\u0439 \u0456 \u0447\u0438\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u0438\u0439 \u043a\u043e\u0434. \u041e\u043f\u0435\u0440\u0430\u0446\u0456\u0457, \u044f\u043a\u0456 \u0440\u0430\u043d\u0456\u0448\u0435 \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0432\u0430\u043b\u0438 \u043a\u0456\u043b\u044c\u043a\u043e\u0445 \u0440\u044f\u0434\u043a\u0456\u0432 \u0456 \u0446\u0438\u043a\u043b\u0456\u0432, \u0447\u0430\u0441\u0442\u043e \u043c\u043e\u0436\u043d\u0430 \u0437\u0432\u0435\u0441\u0442\u0438 \u0434\u043e \u043e\u0434\u043d\u043e\u0433\u043e \u0440\u044f\u0434\u043a\u0430.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u041f\u043e\u043a\u0440\u0430\u0449\u0435\u043d\u0430 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0438\u0432\u043d\u0456\u0441\u0442\u044c<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u0417\u0430\u0432\u0434\u044f\u043a\u0438 \u043c\u043e\u0436\u043b\u0438\u0432\u043e\u0441\u0442\u0456 \u043f\u0430\u0440\u0430\u043b\u0435\u043b\u044c\u043d\u043e\u0457 \u043e\u0431\u0440\u043e\u0431\u043a\u0438 \u0434\u0430\u043d\u0438\u0445 Stream API \u043c\u043e\u0436\u0435 \u0437\u043d\u0430\u0447\u043d\u043e \u043f\u0456\u0434\u0432\u0438\u0449\u0438\u0442\u0438 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0438\u0432\u043d\u0456\u0441\u0442\u044c \u0432\u0435\u043b\u0438\u043a\u0438\u0445 \u043d\u0430\u0431\u043e\u0440\u0456\u0432 \u0434\u0430\u043d\u0438\u0445.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u041f\u0430\u0440\u0430\u0434\u0438\u0433\u043c\u0430 \u0444\u0443\u043d\u043a\u0446\u0456\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u0443\u0432\u0430\u043d\u043d\u044f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Stream API \u0432\u0432\u043e\u0434\u0438\u0442\u044c \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0456\u0457 \u0444\u0443\u043d\u043a\u0446\u0456\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u0443\u0432\u0430\u043d\u043d\u044f \u0432 Java, \u043f\u043e\u043b\u0435\u0433\u0448\u0443\u044e\u0447\u0438 \u0432\u0438\u043a\u043e\u043d\u0430\u043d\u043d\u044f \u0441\u043a\u043b\u0430\u0434\u043d\u0438\u0445 \u043c\u0430\u043d\u0456\u043f\u0443\u043b\u044f\u0446\u0456\u0439 \u0437 \u0434\u0430\u043d\u0438\u043c\u0438 \u0431\u0456\u043b\u044c\u0448 \u0434\u0435\u043a\u043b\u0430\u0440\u0430\u0442\u0438\u0432\u043d\u0438\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u041f\u043e\u0448\u0438\u0440\u0435\u043d\u0456 \u043f\u0456\u0434\u0432\u043e\u0434\u043d\u0456 \u043a\u0430\u043c\u0435\u043d\u0456<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u041c\u0456\u043d\u043b\u0438\u0432\u0456\u0441\u0442\u044c<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u0423\u043d\u0438\u043a\u0430\u0439\u0442\u0435 \u043c\u043e\u0434\u0438\u0444\u0456\u043a\u0430\u0446\u0456\u0457 \u0434\u0436\u0435\u0440\u0435\u043b\u0430 \u043f\u043e\u0442\u043e\u043a\u0443 \u0432\u0441\u0435\u0440\u0435\u0434\u0438\u043d\u0456 \u043f\u0440\u043e\u043c\u0456\u0436\u043d\u0438\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0456\u0439, \u043e\u0441\u043a\u0456\u043b\u044c\u043a\u0438 \u0446\u0435 \u043c\u043e\u0436\u0435 \u043f\u0440\u0438\u0437\u0432\u0435\u0441\u0442\u0438 \u0434\u043e \u043d\u0435\u043f\u0435\u0440\u0435\u0434\u0431\u0430\u0447\u0443\u0432\u0430\u043d\u043e\u0457 \u043f\u043e\u0432\u0435\u0434\u0456\u043d\u043a\u0438.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u041f\u0430\u0440\u0430\u043b\u0435\u043b\u044c\u043d\u0456 \u043f\u043e\u0442\u043e\u043a\u0438<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u0412\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0439\u0442\u0435 \u043f\u0430\u0440\u0430\u043b\u0435\u043b\u044c\u043d\u0456 \u043f\u043e\u0442\u043e\u043a\u0438 \u0437 \u043e\u0431\u0435\u0440\u0435\u0436\u043d\u0456\u0441\u0442\u044e, \u043e\u0441\u043a\u0456\u043b\u044c\u043a\u0438 \u0432\u043e\u043d\u0438 \u043c\u043e\u0436\u0443\u0442\u044c \u0441\u043f\u0440\u0438\u0447\u0438\u043d\u0438\u0442\u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0438 \u0437 \u043f\u0430\u0440\u0430\u043b\u0435\u043b\u044c\u043d\u0456\u0441\u0442\u044e \u0442\u0430 \u043d\u0435 \u0437\u0430\u0432\u0436\u0434\u0438 \u043f\u0440\u0438\u0437\u0432\u0435\u0441\u0442\u0438 \u0434\u043e \u043f\u043e\u043a\u0440\u0430\u0449\u0435\u043d\u043d\u044f \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0456.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u041b\u0456\u043d\u0438\u0432\u0430 \u043e\u0446\u0456\u043d\u043a\u0430<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u041f\u0430\u043c&#039;\u044f\u0442\u0430\u0439\u0442\u0435, \u0449\u043e \u043f\u0440\u043e\u043c\u0456\u0436\u043d\u0456 \u043e\u043f\u0435\u0440\u0430\u0446\u0456\u0457 \u0454 \u043b\u0435\u0434\u0430\u0447\u0438\u043c\u0438. \u041f\u0435\u0440\u0435\u043a\u043e\u043d\u0430\u0439\u0442\u0435\u0441\u044f, \u0449\u043e \u0432\u0438 \u0432\u0438\u043a\u043b\u0438\u043a\u0430\u0454\u0442\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0456\u044e \u0442\u0435\u0440\u043c\u0456\u043d\u0430\u043b\u0443, \u0449\u043e\u0431 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0438 \u043e\u0431\u0440\u043e\u0431\u043a\u0443.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u0412\u0438\u0441\u043d\u043e\u0432\u043e\u043a<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Java 8 Stream API \u2014 \u0446\u0435 \u043f\u043e\u0442\u0443\u0436\u043d\u0438\u0439 \u0456\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442, \u044f\u043a\u0438\u0439 \u043c\u043e\u0436\u0435 \u0437\u043c\u0456\u043d\u0438\u0442\u0438 \u0441\u043f\u043e\u0441\u0456\u0431 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044f \u043a\u043e\u0434\u0443 Java. \u0417\u0430\u0431\u0435\u0437\u043f\u0435\u0447\u0443\u044e\u0447\u0438 \u0444\u0443\u043d\u043a\u0446\u0456\u043e\u043d\u0430\u043b\u044c\u043d\u0438\u0439 \u043f\u0456\u0434\u0445\u0456\u0434 \u0434\u043e \u043e\u0431\u0440\u043e\u0431\u043a\u0438 \u0434\u0430\u043d\u0438\u0445, \u0432\u0456\u043d \u0434\u043e\u0437\u0432\u043e\u043b\u044f\u0454 \u0441\u0442\u0432\u043e\u0440\u044e\u0432\u0430\u0442\u0438 \u0431\u0456\u043b\u044c\u0448 \u0441\u0442\u0438\u0441\u043b\u0438\u0439, \u0447\u0438\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u0438\u0439 \u0456 \u0435\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u0438\u0439 \u043a\u043e\u0434. \u041d\u0435\u0437\u0430\u043b\u0435\u0436\u043d\u043e \u0432\u0456\u0434 \u0442\u043e\u0433\u043e, \u0444\u0456\u043b\u044c\u0442\u0440\u0443\u0454\u0442\u0435 \u0432\u0438, \u043f\u0435\u0440\u0435\u0442\u0432\u043e\u0440\u044e\u0454\u0442\u0435 \u0447\u0438 \u0437\u0431\u0438\u0440\u0430\u0454\u0442\u0435 \u0434\u0430\u043d\u0456, Stream API \u043f\u0440\u043e\u043f\u043e\u043d\u0443\u0454 \u0433\u043d\u0443\u0447\u043a\u0435 \u0442\u0430 \u043f\u043e\u0442\u0443\u0436\u043d\u0435 \u0440\u0456\u0448\u0435\u043d\u043d\u044f. \u042f\u043a \u0456 \u0437 \u0431\u0443\u0434\u044c-\u044f\u043a\u0438\u043c \u0456\u043d\u0448\u0438\u043c \u0456\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u043c, \u0434\u043b\u044f \u0435\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u0430\u043d\u043d\u044f \u0432\u0430\u0436\u043b\u0438\u0432\u043e \u0440\u043e\u0437\u0443\u043c\u0456\u0442\u0438 \u0439\u043e\u0433\u043e \u043c\u043e\u0436\u043b\u0438\u0432\u043e\u0441\u0442\u0456 \u0442\u0430 \u043e\u0431\u043c\u0435\u0436\u0435\u043d\u043d\u044f.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0412\u0438\u0432\u0447\u0456\u0442\u044c Stream API \u0443 \u0441\u0432\u043e\u0457\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445 \u0456 \u0432\u0456\u0434\u0447\u0443\u0439\u0442\u0435 \u043f\u0435\u0440\u0435\u0432\u0430\u0433\u0438 \u0441\u0443\u0447\u0430\u0441\u043d\u0456\u0448\u043e\u0433\u043e \u0444\u0443\u043d\u043a\u0446\u0456\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0456\u0434\u0445\u043e\u0434\u0443 \u0434\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u0443\u0432\u0430\u043d\u043d\u044f \u043d\u0430 Java.<\/p>","protected":false},"excerpt":{"rendered":"<p>What is the Java 8 Stream API and How Can It Transform Your Code? The Java 8 Stream API is a game-changer for Java developers, offering a new way to process data declaratively and efficiently. This tutorial will guide you through the ins and outs of the Stream API, helping you understand its powerful features [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":923261,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-923260","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-articles"],"acf":[],"_links":{"self":[{"href":"https:\/\/proxyelite.info\/uk\/wp-json\/wp\/v2\/posts\/923260","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/proxyelite.info\/uk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/proxyelite.info\/uk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/proxyelite.info\/uk\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/proxyelite.info\/uk\/wp-json\/wp\/v2\/comments?post=923260"}],"version-history":[{"count":1,"href":"https:\/\/proxyelite.info\/uk\/wp-json\/wp\/v2\/posts\/923260\/revisions"}],"predecessor-version":[{"id":923262,"href":"https:\/\/proxyelite.info\/uk\/wp-json\/wp\/v2\/posts\/923260\/revisions\/923262"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/proxyelite.info\/uk\/wp-json\/wp\/v2\/media\/923261"}],"wp:attachment":[{"href":"https:\/\/proxyelite.info\/uk\/wp-json\/wp\/v2\/media?parent=923260"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/proxyelite.info\/uk\/wp-json\/wp\/v2\/categories?post=923260"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/proxyelite.info\/uk\/wp-json\/wp\/v2\/tags?post=923260"}],"curies":[{"name":"\u0412\u041f","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}