{"id":11337,"date":"2025-09-23T21:19:55","date_gmt":"2025-09-23T12:19:55","guid":{"rendered":"https:\/\/www.stechstar.com\/user\/wordpress\/?p=11337"},"modified":"2026-08-20T03:25:08","modified_gmt":"2026-08-19T18:25:08","slug":"java-%ec%9d%bc%eb%b0%98-public-static-void-mainstring-args%eb%8a%94-%ec%a3%bd%ec%97%88%eb%8b%a4-geeknews","status":"publish","type":"post","link":"https:\/\/www.stechstar.com\/user\/wordpress\/java-%ec%9d%bc%eb%b0%98-public-static-void-mainstring-args%eb%8a%94-%ec%a3%bd%ec%97%88%eb%8b%a4-geeknews\/","title":{"rendered":"[Java \uc77c\ubc18] Public static void main(String[] args)\ub294 \uc8fd\uc5c8\ub2e4 | GeekNews"},"content":{"rendered":"<h1>[Java \uc77c\ubc18] Public static void main(String[] args)\ub294 \uc8fd\uc5c8\ub2e4 | GeekNews<\/h1>\n<ul class=\"js-evernote-checked\" data-evernote-id=\"139\">\n<li class=\"js-evernote-checked\" data-evernote-id=\"140\">\uc774\uc81c Java\uc758 \uccab \ubc88\uc9f8 \ud504\ub85c\uadf8\ub7a8\uc740 \ub354 \uc774\uc0c1&nbsp;<strong class=\"js-evernote-checked\" data-evernote-id=\"141\">public static void main(String[] args)<\/strong>&nbsp;\ub85c \uc2dc\uc791\ud558\uc9c0 \uc54a\uace0, \ub2e8\uc21c\ud654\ub41c&nbsp;<strong class=\"js-evernote-checked\" data-evernote-id=\"142\">void main()<\/strong>&nbsp;\ubb38\ubc95\uc73c\ub85c \uc791\uc131 \uac00\ub2a5\ud574\uc9d0<\/li>\n<li class=\"js-evernote-checked\" data-evernote-id=\"143\">\uc0c8\ub85c\uc6b4 \ubb38\ubc95\uc5d0\uc11c\ub294&nbsp;<strong class=\"js-evernote-checked\" data-evernote-id=\"144\">IO.readln<\/strong>\uacfc&nbsp;<strong class=\"js-evernote-checked\" data-evernote-id=\"145\">IO.println<\/strong>&nbsp;\uac19\uc740 \uac04\ub2e8\ud55c \ud638\ucd9c\ub9cc\uc73c\ub85c \uc785\ucd9c\ub825\uc744 \ucc98\ub9ac\ud560 \uc218 \uc788\uc5b4 \ucf54\ub4dc\uac00 \ud6e8\uc52c \uc9c1\uad00\uc801\uc73c\ub85c \ubc14\ub01c<\/li>\n<li class=\"js-evernote-checked\" data-evernote-id=\"146\">\uae30\uc874\uc758&nbsp;<strong class=\"js-evernote-checked\" data-evernote-id=\"147\">new Scanner(System.in)<\/strong>,&nbsp;<strong class=\"js-evernote-checked\" data-evernote-id=\"148\">System.out.println<\/strong>&nbsp;\uac19\uc740 \uc7a5\ud669\ud55c \uad6c\ubb38\uc740 \ubd88\ud544\uc694\ud574\uc9d0<\/li>\n<li class=\"js-evernote-checked\" data-evernote-id=\"149\">\uadf8\ub3d9\uc548\uc758 \ubd88\ud3b8\ud568\uc774&nbsp;<strong class=\"js-evernote-checked\" data-evernote-id=\"150\">\u201c\ub9c8\uce68\ub0b4 \ub05d\ub0a8\u201d<\/strong>, \uc774\uc81c Java\uc758 \uae30\ubcf8 \uad6c\uc870\uac00 \uac00\ubcbc\uc6cc\uc9c0\uba74\uc11c&nbsp;<strong class=\"js-evernote-checked\" data-evernote-id=\"151\">\uc785\ubb38 \uc7a5\ubcbd\uc774 \ub0ae\uc544\uc9c0\uace0 \ud559\uc2b5 \uce5c\ud654\uc131<\/strong>\uc774 \ud06c\uac8c \ud5a5\uc0c1\ub420 \uac83<\/li>\n<\/ul>\n<hr class=\"js-evernote-checked\" data-evernote-id=\"152\">\n<ul class=\"js-evernote-checked\" data-evernote-id=\"153\">\n<li class=\"js-evernote-checked\" data-evernote-id=\"154\">\uc804\ud1b5\uc801\uc73c\ub85c Java\ub294 \ud504\ub85c\uadf8\ub7a8 \uc2dc\uc791\uc744 \uc704\ud574&nbsp;<strong class=\"js-evernote-checked\" data-evernote-id=\"155\"><code class=\"js-evernote-checked\" data-evernote-id=\"156\">public static void main(String[] args)<\/code><\/strong>&nbsp;\ub77c\ub294 \uae34 \uc120\uc5b8\uc744 \uc694\uad6c\ud588\uc74c<\/li>\n<li class=\"js-evernote-checked\" data-evernote-id=\"157\">\uadf8\ub7ec\ub098 2025\ub144 9\uc6d4 16\uc77c \uae30\uc900, Java\uc758 \uac00\uc7a5 \uccab \ubc88\uc9f8 \uc608\uc81c\ub85c \uc5ec\uaca8\uc9c0\ub358&nbsp;<code class=\"js-evernote-checked\" data-evernote-id=\"158\">main<\/code>&nbsp;\ud568\uc218\uc758 \ubcf5\uc7a1\ud55c \uc120\uc5b8\ubb38\uc774 \uc0c8\ub85c\uc6b4 \uac04\ub2e8\ud55c \ud615\ud0dc\ub85c \ub300\uccb4\ub428<\/li>\n<li class=\"js-evernote-checked\" data-evernote-id=\"159\"><strong class=\"js-evernote-checked\" data-evernote-id=\"160\">\uae30\uc874 \ubc29\uc2dd<\/strong>:\n<pre class=\"js-evernote-checked\" data-evernote-id=\"161\"><code class=\"hljs language-typescript js-evernote-checked\" data-evernote-id=\"0\"><span class=\"hljs-keyword js-evernote-checked\" data-evernote-id=\"3\">public<\/span> <span class=\"hljs-keyword js-evernote-checked\" data-evernote-id=\"4\">class<\/span> <span class=\"hljs-title class_ js-evernote-checked\" data-evernote-id=\"18\">Main<\/span> {  \n    <span class=\"hljs-keyword js-evernote-checked\" data-evernote-id=\"5\">public<\/span> <span class=\"hljs-keyword js-evernote-checked\" data-evernote-id=\"6\">static<\/span> <span class=\"hljs-built_in js-evernote-checked\" data-evernote-id=\"36\">void<\/span> <span class=\"hljs-title function_ js-evernote-checked\" data-evernote-id=\"19\">main<\/span>(<span class=\"hljs-params js-evernote-checked\" data-evernote-id=\"162\"><span class=\"hljs-built_in js-evernote-checked\" data-evernote-id=\"37\">String<\/span>[] args<\/span>) {  \n        <span class=\"hljs-title class_ js-evernote-checked\" data-evernote-id=\"20\">Scanner<\/span> scanner = <span class=\"hljs-keyword js-evernote-checked\" data-evernote-id=\"7\">new<\/span> <span class=\"hljs-title class_ js-evernote-checked\" data-evernote-id=\"21\">Scanner<\/span>(<span class=\"hljs-title class_ js-evernote-checked\" data-evernote-id=\"22\">System<\/span>.<span class=\"hljs-property js-evernote-checked\" data-evernote-id=\"163\">in<\/span>);  \n        <span class=\"hljs-title class_ js-evernote-checked\" data-evernote-id=\"23\">System<\/span>.<span class=\"hljs-property js-evernote-checked\" data-evernote-id=\"164\">out<\/span>.<span class=\"hljs-title function_ js-evernote-checked\" data-evernote-id=\"24\">print<\/span>(<span class=\"hljs-string js-evernote-checked\" data-evernote-id=\"12\">\"What is your name? \"<\/span>);  \n        <span class=\"hljs-title class_ js-evernote-checked\" data-evernote-id=\"25\">String<\/span> name = scanner.<span class=\"hljs-title function_ js-evernote-checked\" data-evernote-id=\"26\">nextLine<\/span>();  \n        <span class=\"hljs-title class_ js-evernote-checked\" data-evernote-id=\"27\">System<\/span>.<span class=\"hljs-property js-evernote-checked\" data-evernote-id=\"165\">out<\/span>.<span class=\"hljs-title function_ js-evernote-checked\" data-evernote-id=\"28\">println<\/span>(<span class=\"hljs-string js-evernote-checked\" data-evernote-id=\"13\">\"Hello, \"<\/span> + name);  \n    }  \n}  \n<\/code><\/pre>\n<\/li>\n<li class=\"js-evernote-checked\" data-evernote-id=\"166\"><strong class=\"js-evernote-checked\" data-evernote-id=\"167\">\uc0c8\ub85c\uc6b4 \ubc29\uc2dd<\/strong>:\n<pre class=\"js-evernote-checked\" data-evernote-id=\"168\"><code class=\"hljs language-csharp js-evernote-checked\" data-evernote-id=\"1\"><span class=\"hljs-function js-evernote-checked\" data-evernote-id=\"169\"><span class=\"hljs-keyword js-evernote-checked\" data-evernote-id=\"8\">void<\/span> <span class=\"hljs-title js-evernote-checked\" data-evernote-id=\"29\">main<\/span>()<\/span> {  \n    <span class=\"hljs-keyword js-evernote-checked\" data-evernote-id=\"9\">var<\/span> name = IO.readln(<span class=\"hljs-string js-evernote-checked\" data-evernote-id=\"14\">\"What is your name? \"<\/span>);  \n    IO.println(<span class=\"hljs-string js-evernote-checked\" data-evernote-id=\"15\">\"Hello, \"<\/span> + name);  \n}  \n<\/code><\/pre>\n<\/li>\n<li class=\"js-evernote-checked\" data-evernote-id=\"170\">\ucd08\ubcf4\uc790\uc5d0\uac8c\ub294 \ubd88\ud544\uc694\ud558\uac8c \uc7a5\ud669\ud558\uace0, \u201c\uc8fc\uc220\uc801 \uc8fc\ubb38\u201d\ucc98\ub7fc \uc678\uc6cc\uc57c\ub9cc \ud588\ub358 \uad6c\ubb38\uc774\ub77c\ub294 \ube44\ud310\uc744 \ubc1b\uc544\uc654\uc74c<\/li>\n<li class=\"js-evernote-checked\" data-evernote-id=\"171\"><strong class=\"js-evernote-checked\" data-evernote-id=\"172\">\uae30\uc874 \uc120\uc5b8\ubb38\uc758 \ubc88\uac70\ub85c\uc6c0<\/strong>\uacfc&nbsp;<strong class=\"js-evernote-checked\" data-evernote-id=\"173\">\ub09c\ud574\ud568<\/strong>\uc744 \ud574\uc18c\ud558\uace0, \uac04\uacb0\ud55c \ubb38\ubc95 \ub3c4\uc785\uc73c\ub85c \ucf54\ub4dc \uac00\ub3c5\uc131\uc774 \ub192\uc544\uc84c\uc73c\uba70, Java \uc785\ubb38\uc758 \uc9c4\uc785 \uc7a5\ubcbd\uc774 \ud06c\uac8c \ub0ae\uc544\uc9d0\n<ul class=\"js-evernote-checked\" data-evernote-id=\"174\">\n<li class=\"js-evernote-checked\" data-evernote-id=\"175\">\ub354 \uc774\uc0c1&nbsp;<strong class=\"js-evernote-checked\" data-evernote-id=\"176\">Scanner, System.out.println<\/strong>&nbsp;\ub4f1 \ubcf5\uc7a1\ud55c \uac1d\uccb4 \uc0dd\uc131\uacfc \ud638\ucd9c\uc744 \uae30\ubcf8 \uc608\uc81c\ub85c \uc4f0\uc9c0 \uc54a\uc74c<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<blockquote class=\"js-evernote-checked\" data-evernote-id=\"177\">\n<p class=\"js-evernote-checked\" data-evernote-id=\"178\">Good Fucking Riddance = \u201c\ub4dc\ub514\uc5b4 \uc5c6\uc5b4\uc838\uc11c \uc18d \uc2dc\uc6d0\ud558\ub2e4. \uc798 \uac00\ub77c\u201d<\/p>\n<\/blockquote>\n<p>[\ucd9c\ucc98]&nbsp;https:\/\/news.hada.io\/topic?id=23138&amp;utm_source=weekly&amp;utm_medium=email&amp;utm_campaign=202538<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_11337\" class=\"pvc_stats all  \" data-element-id=\"11337\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/www.stechstar.com\/user\/wordpress\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>[Java \uc77c\ubc18] Public static void main(String[] args)\ub294 \uc8fd\uc5c8\ub2e4 | GeekNews \uc774\uc81c Java\uc758 \uccab \ubc88\uc9f8 \ud504\ub85c\uadf8\ub7a8\uc740 \ub354 \uc774\uc0c1&nbsp;public static void main(String[] args)&nbsp;\ub85c \uc2dc\uc791\ud558\uc9c0 \uc54a\uace0, \ub2e8\uc21c\ud654\ub41c&nbsp;void main()&nbsp;\ubb38\ubc95\uc73c\ub85c \uc791\uc131 \uac00\ub2a5\ud574\uc9d0 \uc0c8\ub85c\uc6b4 \ubb38\ubc95\uc5d0\uc11c\ub294&nbsp;IO.readln\uacfc&nbsp;IO.println&nbsp;\uac19\uc740 \uac04\ub2e8\ud55c \ud638\ucd9c\ub9cc\uc73c\ub85c \uc785\ucd9c\ub825\uc744 \ucc98\ub9ac\ud560 \uc218 \uc788\uc5b4 \ucf54\ub4dc\uac00 \ud6e8\uc52c \uc9c1\uad00\uc801\uc73c\ub85c \ubc14\ub01c \uae30\uc874\uc758&nbsp;new Scanner(System.in),&nbsp;System.out.println&nbsp;\uac19\uc740 \uc7a5\ud669\ud55c \uad6c\ubb38\uc740 \ubd88\ud544\uc694\ud574\uc9d0 \uadf8\ub3d9\uc548\uc758 \ubd88\ud3b8\ud568\uc774&nbsp;\u201c\ub9c8\uce68\ub0b4 \ub05d\ub0a8\u201d, \uc774\uc81c Java\uc758 \uae30\ubcf8 \uad6c\uc870\uac00 \uac00\ubcbc\uc6cc\uc9c0\uba74\uc11c&nbsp;\uc785\ubb38 \uc7a5\ubcbd\uc774 \ub0ae\uc544\uc9c0\uace0 \ud559\uc2b5 [&hellip;]<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_11337\" class=\"pvc_stats all  \" data-element-id=\"11337\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/www.stechstar.com\/user\/wordpress\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[21,24,20],"tags":[],"class_list":["post-11337","post","type-post","status-publish","format-standard","hentry","category-21","category-24","category-20"],"a3_pvc":{"activated":true,"total_views":9,"today_views":0},"_links":{"self":[{"href":"https:\/\/www.stechstar.com\/user\/wordpress\/wp-json\/wp\/v2\/posts\/11337","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.stechstar.com\/user\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.stechstar.com\/user\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.stechstar.com\/user\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.stechstar.com\/user\/wordpress\/wp-json\/wp\/v2\/comments?post=11337"}],"version-history":[{"count":4,"href":"https:\/\/www.stechstar.com\/user\/wordpress\/wp-json\/wp\/v2\/posts\/11337\/revisions"}],"predecessor-version":[{"id":11890,"href":"https:\/\/www.stechstar.com\/user\/wordpress\/wp-json\/wp\/v2\/posts\/11337\/revisions\/11890"}],"wp:attachment":[{"href":"https:\/\/www.stechstar.com\/user\/wordpress\/wp-json\/wp\/v2\/media?parent=11337"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.stechstar.com\/user\/wordpress\/wp-json\/wp\/v2\/categories?post=11337"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.stechstar.com\/user\/wordpress\/wp-json\/wp\/v2\/tags?post=11337"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}