{"id":725,"date":"2020-07-29T20:20:45","date_gmt":"2020-07-29T11:20:45","guid":{"rendered":"http:\/\/leenux.kr\/?p=725"},"modified":"2020-08-29T19:17:55","modified_gmt":"2020-08-29T10:17:55","slug":"java-1","status":"publish","type":"post","link":"https:\/\/leenux.kr\/?p=725","title":{"rendered":"1. [Java] \ub370\uc774\ud130\ud615 \uc885\ub958 \ubc0f \ubb38\ubc95 \uac1c\ub150"},"content":{"rendered":"\n<hr class=\"wp-block-separator is-style-wide\"\/>\n\n\n\n<p style=\"text-align:center\" class=\"has-text-color has-large-font-size has-very-dark-gray-color\"><strong>Java \ubb38\ubc95 \uac1c\ub150<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator is-style-wide\"\/>\n\n\n\n<p class=\"has-text-color has-medium-font-size has-very-dark-gray-color\"><strong>\ubc11\uc5d0 Java\ucf54\ub4dc\ub97c \uc7a0\uae50\ubcf4\uc790.<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>   1     2           3\nString java = \"Welcome to Java\";\n\/\/ \uc8fc\uc11d\ucc98\ub9ac \uc774\ubbc0\ub85c \uba54\ubaa8 \uae30\ub2a5\uc73c\ub85c \uc0ac\uc6a9 \uac00\ub2a5\uacfc \ud574\ub2f9 \ub77c\uc778 \ucf54\ub4dc\ub97c \uc2e4\ud589\uc744 \uc548\uc2dc\ud0ac \uc218 \uc788\ub2e4. <\/code><\/pre>\n\n\n\n<p style=\"text-align:left\" class=\"has-text-color has-very-dark-gray-color\"><strong>\ucf54\ub4dc \ud574\uc11d<\/strong><\/p>\n\n\n\n<ol><li><strong>String \ub370\uc774\ud130\ud615 <\/strong><\/li><li><strong>java \ubcc0\uc218\uba85<\/strong><\/li><li><strong>\uac12 &#8220;Welcome to Java&#8221;<\/strong><\/li><\/ol>\n\n\n\n<p class=\"has-text-color has-medium-font-size has-very-dark-gray-color\"><strong>\u203b Java \ud544\uc218 \uac1c\ub150 \ubc0f Tip \u203b<\/strong><\/p>\n\n\n\n<ol><li><strong>\ub370\uc774\ud130\ud615\ub97c \ud544\uc218\uc801\uc73c\ub85c \ubc1d\ud600\uc918\uc57c \ub418\uace0 \ub9c8\uc9c0\ub9c9\uc5d0 &#8220;;&#8221; \uc138\ubbf8\ucf5c\ub860 \uc989 \uc885\uacb0\uc790\ub97c \uc368\uc918\uc57c\ub41c\ub2e4. <\/strong><\/li><li><strong>Java\ub97c \ud3ec\ud568\ud55c \ub300\ubd80\ubd84\uc758 \ud504\ub85c\uadf8\ub798\ubc0d\uc5d0\uc11c\ub294 &#8220;=&#8221; \uae30\ud638\ub294 &#8220;\uac19\ub2e4\ub77c\ub294 \uac1c\ub150\ubcf4\ub2e4\ub294 \ub300\uc785\ud558\ub2e4&#8221; \ub77c\ub294 \uac1c\ub150\uc744 \uac00\uc84c\uc73c\uba74\uc88b\uaca0\ub2e4.<\/strong><\/li><li><strong>\/\/ \uc2ac\ub798\uc26c \ub450\ubc88\uc740 \uc8fc\uc11d\ucc98\ub9ac \uc774\ubbc0\ub85c \uba54\ubaa8 \uae30\ub2a5\uc73c\ub85c \uc0ac\uc6a9 \uac00\ub2a5\uacfc \ud574\ub2f9 \ub77c\uc778 \ucf54\ub4dc\ub97c \uc2e4\ud589\uc744 \uc548\uc2dc\ud0ac \uc218 \uc788\ub2e4. <\/strong><\/li><\/ol>\n\n\n\n<hr class=\"wp-block-separator is-style-wide\"\/>\n\n\n\n<p style=\"text-align:center\" class=\"has-text-color has-large-font-size has-very-dark-gray-color\"><strong>Java \ub370\uc774\ud130\ud615 \uc885\ub958<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator is-style-wide\"\/>\n\n\n\n<p class=\"has-text-color has-medium-font-size has-very-dark-gray-color\"><strong>\ub9ce\uc774 \uc0ac\uc6a9\ub418\ub294 \ub370\uc774\ud130\ud615\ub9cc \uc18c\uac1c\ud558\uaca0\uc2b5\ub2c8\ub2e4.<\/strong><\/p>\n\n\n\n<p style=\"text-align:center\" class=\"has-text-color has-medium-font-size has-very-dark-gray-color\"><strong>\uc815\uc218\ud615, \uc2e4\uc218\ud615, \ubb38\uc790\ud615<\/strong><\/p>\n\n\n\n<p class=\"has-text-color has-medium-font-size has-very-dark-gray-color\"><strong>\uc815\uc218\ud615<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ \uc815\uc218\ud615\nint number_one = 1000; \/\/ 16byte\n\nInteger number_two = 2000 \/\/ 4byte<\/code><\/pre>\n\n\n\n<p class=\"has-text-color has-medium-font-size has-very-dark-gray-color\"><strong>int, Integer  \uc5f0\uc0b0\ucc98\ub9ac\uc0ac\uc6a9 <\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>int one = 1;\nint two = 2;\nInteger three = 3;\nInteger four = 4;\n\n\/\/ \ub354\ud558\uae30\nSystem.out.println(one + two); \n\/\/ \uacb0\uacfc\uac12 : 3\n\n\/\/ \ubeb4\uae30\nSytem.out.println(four - two);\n\/\/ \uacb0\uacfc\uac12 :  2\n\n\/\/ \uacf1\ud558\uae30\nSystem.out.println(two * three);\n\/\/ \uacb0\uacfc\uac12 : 6\n\n\/\/ \ub098\ub204\uae30\nSystem.out.println(four \/ two);\n\/\/\uacb0\uacfc\uac12 : 2<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator is-style-wide\"\/>\n\n\n\n<p class=\"has-text-color has-medium-font-size has-very-dark-gray-color\"><strong>\uc2e4\uc218\ud615<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ \uc2e4\uc218\ud615\ndouble real_number = 3.14;<\/code><\/pre>\n\n\n\n<p class=\"has-text-color has-medium-font-size has-very-dark-gray-color\"><strong>Double \u03c0 3.14, \uc9c0\ub3c4\uc758 \uacbd\ub3c4 \uc704\ub3c4 \uc6a9\ub3c4\ub85c \uc0ac\uc6a9<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator is-style-wide\"\/>\n\n\n\n<p class=\"has-text-color has-medium-font-size has-very-dark-gray-color\"><strong>\ubb38\uc790\ud615<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>String string_item = \"\uc548\ub155\ud558\uc138\uc694. Java \uae30\ubcf8 \ubb38\ubc95\uc785\ub2c8\ub2e4.\";<\/code><\/pre>\n\n\n\n<p class=\"has-text-color has-medium-font-size has-very-dark-gray-color\"><strong>String \ubb38\uc790 \uae38\uc774 \uad6c\ud558\uae30<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>String string_item = \"\uc548\ub155\ud558\uc138\uc694. Java \uae30\ubcf8 \ubb38\ubc95\uc785\ub2c8\ub2e4.\";\nSystem.out.println(string_item.length);\n\/\/ \uacb0\uacfc \uac12 21<\/code><\/pre>\n\n\n\n<p class=\"has-text-color has-medium-font-size has-very-dark-gray-color\"><strong>String \ubb38\uc790 \ube48\uce78 \ud655\uc778<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>String string_item = \"\";\nstring_item.isEmpty(); \ubcc0\ud658 \ub370\uc774\ud130\uac12 boolean <\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Java \ubb38\ubc95 \uac1c\ub150 \ubc11\uc5d0 Java\ucf54\ub4dc\ub97c \uc7a0\uae50\ubcf4\uc790. \ucf54\ub4dc \ud574\uc11d String \ub370\uc774\ud130\ud615 java \ubcc0\uc218\uba85 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":606,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[17],"tags":[],"_links":{"self":[{"href":"https:\/\/leenux.kr\/index.php?rest_route=\/wp\/v2\/posts\/725"}],"collection":[{"href":"https:\/\/leenux.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/leenux.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/leenux.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/leenux.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=725"}],"version-history":[{"count":14,"href":"https:\/\/leenux.kr\/index.php?rest_route=\/wp\/v2\/posts\/725\/revisions"}],"predecessor-version":[{"id":805,"href":"https:\/\/leenux.kr\/index.php?rest_route=\/wp\/v2\/posts\/725\/revisions\/805"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/leenux.kr\/index.php?rest_route=\/wp\/v2\/media\/606"}],"wp:attachment":[{"href":"https:\/\/leenux.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=725"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/leenux.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=725"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/leenux.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=725"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}