<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>y_saiki</author_name>
  <author_url>https://blog.hatena.ne.jp/y_saiki/</author_url>
  <blog_title>Sassyブログ</blog_title>
  <blog_url>https://www.sassy-blog.com/</blog_url>
  <categories>
    <anon>IT・ソフトウェア</anon>
  </categories>
  <description>目次 目次 環境 サンプルコード 環境 scala2.11.11 サンプルコード Scalaでコンソール入力を行いたい場合は以下のように書く。 ※ちなみに下記の実装だと、１行入力のみであるため複数行入力は行えない。 ctrl + Dするまで入力→出力を行ってくれる。 package com.sample import scala.io.StdIn.readLine object InputSample { def main(args: Array[String]): Unit = { val lines = Iterator.continually(readLine()).takeWhile(…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.sassy-blog.com%2Fentry%2F20180117%2F1516197520&quot; title=&quot;【Scala入門】コンソールから入力を行いたい - Sassyブログ&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-01-17 22:58:40</published>
  <title>【Scala入門】コンソールから入力を行いたい</title>
  <type>rich</type>
  <url>https://www.sassy-blog.com/entry/20180117/1516197520</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
