{"type":"rich","blog_title":"\u30b3\u30c4\u30b3\u30c4\u5b66\u7fd2\u30d6\u30ed\u30b0","author_name":"pineatapple","url":"https://ioioios.hatenablog.com/entry/2022/08/17/231643","height":"190","categories":[],"author_url":"https://blog.hatena.ne.jp/pineatapple/","published":"2022-08-17 23:16:43","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fioioios.hatenablog.com%2Fentry%2F2022%2F08%2F17%2F231643\" title=\"Java\u30672\u3064\u306e\u6587\u5b57\u5217\u3092\u8f9e\u66f8\u9806\u3067\u6bd4\u8f03 - \u30b3\u30c4\u30b3\u30c4\u5b66\u7fd2\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","description":"Atcoder\u3067\u305f\u307e\u306b\u51fa\u3066\u304f\u308b\u8f9e\u66f8\u9806\u554f\u984c\u3002 \u57fa\u672c\u7684\u306b\u3001\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9Comparable\u3092\u5b9f\u88c5\u3057\u305f String\u30af\u30e9\u30b9\u306ecompareto()\u3092\u4f7f\u7528\u3059\u308b\u3002 \u623b\u308a\u5024\u306f\u7d50\u679c\u306b\u5fdc\u3058\u3066-1,0,1 \u306e\u3044\u305a\u308c\u304b\u304c\u8fd4\u5374\u3055\u308c\u308b String textA = \"aa\"; String textB = \"bbb\"; int compare = textA.compareTo(textB); if(compare < 0) { System.out.println(textA); }else { System.out.println(textB); } \"aa\"\u304c\u51fa\u529b\u3055\u308c\u308b","title":"Java\u30672\u3064\u306e\u6587\u5b57\u5217\u3092\u8f9e\u66f8\u9806\u3067\u6bd4\u8f03","blog_url":"https://ioioios.hatenablog.com/","version":"1.0","image_url":null,"width":"100%"}