<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>earu</author_name>
  <author_url>https://blog.hatena.ne.jp/earu/</author_url>
  <blog_title>エキサイト TechBlog.</blog_title>
  <blog_url>https://tech.excite.co.jp/</blog_url>
  <categories>
  </categories>
  <description>エキサイト株式会社メディア開発の佐々木です。 Javaは、戻り値を1つしか返せない言語です。GoやPythonは複数返すことができますが、言語的にサポートされていないので、ライブラリを使って代用します。 設定 使うライブラリは、有名なcommons-lang3になります。Gradleで依存解決を行います。 dependencies { ... implements &quot;org.apache.commons:commons-lang3:3.10&quot; // 追加 ... } 戻り値2つ 戻り値2つには、Pairをしようします。 public Pair&lt;Integer, String&gt; getPair(…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.excite.co.jp%2Fentry%2F2021%2F04%2F17%2F182352&quot; title=&quot;Javaで戻り値を多値で返したい - エキサイト TechBlog.&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>2021-04-17 18:23:52</published>
  <title>Javaで戻り値を多値で返したい</title>
  <type>rich</type>
  <url>https://tech.excite.co.jp/entry/2021/04/17/182352</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
