{"id":1973,"date":"2014-02-05T04:15:23","date_gmt":"2014-02-05T04:15:23","guid":{"rendered":"http:\/\/www.gisdeveloper.co.kr\/?p=1973"},"modified":"2017-01-27T11:20:09","modified_gmt":"2017-01-27T02:20:09","slug":"java-%ed%95%9c%ea%b8%80-%eb%ac%b8%ec%9e%90%ec%97%b4%ec%97%90%ec%84%9c-%ec%b4%88%ec%84%b1-%ec%96%bb%ea%b8%b0","status":"publish","type":"post","link":"http:\/\/www.gisdeveloper.co.kr\/?p=1973","title":{"rendered":"[Java] \ud55c\uae00 \ubb38\uc790\uc5f4\uc5d0\uc11c \ucd08\uc131 \uc5bb\uae30"},"content":{"rendered":"<p>\uc608\ub97c \ub4e4\uc5b4, &#8216;\ub300\ud55c\ubbfc\uad6d&#8217;\uc758 \uccab\uc790\uc778 &#8216;\ub300&#8217;\uc758 \ucd08\uc131\uc744 \uc5bb\ub294 \ucf54\ub4dc\uc785\ub2c8\ub2e4. &#8216;\ub300&#8217;\uc758 \ucd08\uc131\uc740 &#8216;\u3137&#8217;\uc785\ub2c8\ub2e4. \uc544\ub798\uc758 \ud568\uc218 \ucf54\ub4dc\ub294 &#8216;\ub300\ud55c\ubbfc\uad6d&#8217;\uacfc \uac19\uc740 \ubb38\uc790\uc5f4\uc744 \uc778\uc790\ub85c \ubc1b\uc544 \uadf8 \uacb0\uacfc\ub85c &#8216;\u3137&#8217; \ubb38\uc790\uc5f4\uc744 \ubc18\ud658\ud558\ub294 \ud568\uc218\uc785\ub2c8\ub2e4.<\/p>\n<pre>\r\nString getInitialSound(String text) {\r\n    String[] chs = { \r\n        \"\u3131\", \"\u3132\", \"\u3134\", \"\u3137\", \"\u3138\", \r\n        \"\u3139\", \"\u3141\", \"\u3142\", \"\u3143\", \"\u3145\", \r\n        \"\u3146\", \"\u3147\", \"\u3148\", \"\u3149\", \"\u314a\", \r\n        \"\u314b\", \"\u314c\", \"\u314d\", \"\u314e\" \r\n    };\r\n\t\t\r\n    if(text.length() > 0) {\r\n        char chName = text.charAt(0);\r\n        if(chName >= 0xAC00)\r\n        {\r\n            int uniVal = chName - 0xAC00;\r\n            int cho = ((uniVal - (uniVal % 28))\/28)\/21;\r\n\r\n            return chs[cho];\r\n        }\r\n    }\r\n   \t\t\r\n    return null; \r\n}\r\n<\/pre>\n<p>\uc704\uc758 \ud568\uc218\ub97c \uac04\ub2e8\ud788 \ud14c\uc2a4\ud2b8\ud558\ub294 \ucf54\ub4dc \uc608\ub294 \uc544\ub798\uc640 \uac19\uc2b5\ub2c8\ub2e4.<\/p>\n<pre>\r\nSystem.out.println(getInitialSound(\"\uc790\ubc14\"));\r\n<\/pre>\n<p>\uacb0\uacfc\ub294 &#8216;\u3148&#8217;\uc785\ub2c8\ub2e4.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uc608\ub97c \ub4e4\uc5b4, &#8216;\ub300\ud55c\ubbfc\uad6d&#8217;\uc758 \uccab\uc790\uc778 &#8216;\ub300&#8217;\uc758 \ucd08\uc131\uc744 \uc5bb\ub294 \ucf54\ub4dc\uc785\ub2c8\ub2e4. &#8216;\ub300&#8217;\uc758 \ucd08\uc131\uc740 &#8216;\u3137&#8217;\uc785\ub2c8\ub2e4. \uc544\ub798\uc758 \ud568\uc218 \ucf54\ub4dc\ub294 &#8216;\ub300\ud55c\ubbfc\uad6d&#8217;\uacfc \uac19\uc740 \ubb38\uc790\uc5f4\uc744 \uc778\uc790\ub85c \ubc1b\uc544 \uadf8 \uacb0\uacfc\ub85c &#8216;\u3137&#8217; \ubb38\uc790\uc5f4\uc744 \ubc18\ud658\ud558\ub294 \ud568\uc218\uc785\ub2c8\ub2e4. String getInitialSound(String text) { String[] chs = { &#8220;\u3131&#8221;, &#8220;\u3132&#8221;, &#8220;\u3134&#8221;, &#8220;\u3137&#8221;, &#8220;\u3138&#8221;, &#8220;\u3139&#8221;, &#8220;\u3141&#8221;, &#8220;\u3142&#8221;, &#8220;\u3143&#8221;, &#8220;\u3145&#8221;, &#8220;\u3146&#8221;, &#8220;\u3147&#8221;, &#8220;\u3148&#8221;, &#8220;\u3149&#8221;, &#8220;\u314a&#8221;, &#8220;\u314b&#8221;, &#8220;\u314c&#8221;, &#8220;\u314d&#8221;, &#8220;\u314e&#8221; }; if(text.length() > &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/www.gisdeveloper.co.kr\/?p=1973\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;[Java] \ud55c\uae00 \ubb38\uc790\uc5f4\uc5d0\uc11c \ucd08\uc131 \uc5bb\uae30&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[60],"tags":[],"class_list":["post-1973","post","type-post","status-publish","format-standard","hentry","category-java"],"_links":{"self":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/1973","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1973"}],"version-history":[{"count":1,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/1973\/revisions"}],"predecessor-version":[{"id":2903,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/1973\/revisions\/2903"}],"wp:attachment":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1973"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1973"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1973"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}