{"author_url":"https://blog.hatena.ne.jp/irof/","title":"Java7 \u4f53\u5f53\u305f\u308a\uff0fstrings switch","url":"https://irof.hateblo.jp/entry/20110301/p1","blog_title":"\u65e5\u3005\u5e38\u3005","author_name":"irof","image_url":null,"provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Firof.hateblo.jp%2Fentry%2F20110301%2Fp1\" title=\"Java7 \u4f53\u5f53\u305f\u308a\uff0fstrings switch - \u65e5\u3005\u5e38\u3005\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","width":"100%","published":"2011-03-01 00:00:01","blog_url":"https://irof.hateblo.jp/","height":"190","categories":["Java"],"description":"Switch \u306b String \u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308b\u307f\u305f\u3044\u3067\u3059\u3002 String in switch Statements switch \u306b\u4f7f\u3048\u308b\u306e\u306f int \u304b Enum \u3060\u3063\u305f\u306e\u3067\u3059\u3051\u308c\u3069\u3001\u3053\u306e\u5ea6 String \u3082\u51fa\u6765\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u5358\u306a\u308b1\u30af\u30e9\u30b9\u306e\u306f\u305a\u306a\u306e\u306b\u512a\u9047\u3055\u308c\u307e\u304f\u3063\u3066\u308b String \u3055\u3093\u3067\u3059\u3002 String result; switch (\"\u3042\") { case \"\u3042\": result = \"a\"; break; case \"\u3044\": result = \"i\"; break; default: result = \"u\"; } System.out.println(result); \u2026","provider_name":"Hatena Blog","type":"rich"}