<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tanakahda</author_name>
  <author_url>https://blog.hatena.ne.jp/tanakahda/</author_url>
  <blog_title>tanakahdaのプログラマ手帳</blog_title>
  <blog_url>https://tanakahda.hateblo.jp/</blog_url>
  <categories>
    <anon>Java</anon>
  </categories>
  <description>String[] names = {&quot;tanaka&quot;, &quot;tomita&quot;, &quot;ito&quot;, &quot;kenmoto&quot;}; // ラムダ式を使わない場合 class LengthComparator implements Comparator&lt;String&gt; { @Override public int compare(String o1, String o2) { return Integer.compare(o1.length(), o2.length()); } } Arrays.sort(names, new LengthComparator()); System.out.println(Arr…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftanakahda.hateblo.jp%2Fentry%2F2021%2F07%2F10%2F161850&quot; title=&quot;ラムダ式でComparatorを実装する@Java - tanakahdaのプログラマ手帳&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-07-10 16:18:50</published>
  <title>ラムダ式でComparatorを実装する@Java</title>
  <type>rich</type>
  <url>https://tanakahda.hateblo.jp/entry/2021/07/10/161850</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
