<?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におけるforEachの使い方を説明します。 forEachとは 使い方 おわりに おすすめの学習本 forEachとは 名前の通り、streamに対して繰り返し処理を行うメソッドです。 使い方 forEachを使って配列の中身を順番に標準出力します。手順は以下のようになります。1．配列をStreamオブジェクトに変換する 2．forEachで順番に配列の中身を出力する以下がそのコードです。 int[] array = { 1, 2, 3, 4, 5 }; IntStream stream = Arrays.stream(array); stre…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftalosta.hatenablog.com%2Fentry%2FforEach&quot; title=&quot;Java Gold合格への道　～StreamAPI・forEach～ - たろすのプログラミング教室&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/20211226/20211226123246.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-02-01 18:00:00</published>
  <title>Java Gold合格への道　～StreamAPI・forEach～</title>
  <type>rich</type>
  <url>https://talosta.hatenablog.com/entry/forEach</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
