<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>talosta</author_name>
  <author_url>https://blog.hatena.ne.jp/talosta/</author_url>
  <blog_title>たろすのプログラミング教室</blog_title>
  <blog_url>https://talosta.hatenablog.com/</blog_url>
  <categories>
    <anon>プログラミング</anon>
    <anon>プログラミング-Java</anon>
    <anon>資格</anon>
    <anon>資格-Java Gold</anon>
  </categories>
  <description>こんにちは。たろすです。今回はStreamAPIのpeekの使い方について説明します。 使い方 おわりに おすすめの学習本 使い方 peekはStreamオブジェクトをそのまま返すメソッドです。引数に副作用を伴う処理を書くことで、デバッグに使用することができます。以下のように使用します。 int[] array = { 1, 2, 3, 4, 5 }; IntStream stream = Arrays.stream(array); stream.peek(System.out::print).count(); 12345peekメソッドの中で出力する処理を書くことでStreamの中身を可視化…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftalosta.hatenablog.com%2Fentry%2Fpeek&quot; title=&quot;Java Gold合格への道　～StreamAPI・peek～ - たろすのプログラミング教室&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/t/talosta/20220106/20220106132834.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-03-01 18:00:00</published>
  <title>Java Gold合格への道　～StreamAPI・peek～</title>
  <type>rich</type>
  <url>https://talosta.hatenablog.com/entry/peek</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
