{"id":411,"date":"2016-04-10T23:30:14","date_gmt":"2016-04-10T14:30:14","guid":{"rendered":"http:\/\/csharp.ihavenomoney.co.kr\/?p=411"},"modified":"2016-09-22T12:06:23","modified_gmt":"2016-09-22T03:06:23","slug":"java-programming-tutorial-15-use-methods-with-parameters","status":"publish","type":"post","link":"https:\/\/csharp.ihavenomoney.co.kr\/?p=411","title":{"rendered":"Java Programming Tutorial &#8211; 15 &#8211; Use Methods with Parameters"},"content":{"rendered":"<p><iframe loading=\"lazy\" width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/7MBgaF8wXls?list=PLFE2CE09D83EE3E28\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n<pre class=\"prettyprint\">\r\npackage apples;\r\n\r\nimport java.util.Scanner;\r\npublic class apples {\r\n    public static void main(String[] args) {\r\n\t\t\r\n\t\tScanner input = new Scanner(System.in);\r\n\t\ttuna tunaObject = new tuna();\r\n\t\t\r\n\t\tSystem.out.println(\"Enter your name here: \");\r\n\t\tString name  = input.nextLine();\r\n\t\t\r\n\t\ttunaObject.simpleMessage(name);\r\n\t\t}\r\n}\r\n\r\n\/\/tuna.java\r\npackage apples;\r\n\r\npublic class tuna {\r\n    public void simpleMessage(String name){\r\n\t\tSystem.out.println(\"Hello \"+ name);\r\n\t}\r\n}\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>package apples; import java.util.Scanner; public class apples { public static void main(String[] args) { Scanner input = new Scanner(System.in); tuna tunaObject = new tuna(); System.out.println(&#8220;Enter your name here: &#8220;); String name = input.nextLine(); tunaObject.simpleMessage(name); } } \/\/tuna.java package apples; public class tuna { public void simpleMessage(String name){ System.out.println(&#8220;Hello &#8220;+ name); } }<\/p>\n","protected":false},"author":1,"featured_media":369,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[82],"tags":[],"class_list":["post-411","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-java"],"jetpack_featured_media_url":"https:\/\/csharp.ihavenomoney.co.kr\/wp-content\/uploads\/2015\/09\/java.jpg","_links":{"self":[{"href":"https:\/\/csharp.ihavenomoney.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/411","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/csharp.ihavenomoney.co.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/csharp.ihavenomoney.co.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/csharp.ihavenomoney.co.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/csharp.ihavenomoney.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=411"}],"version-history":[{"count":2,"href":"https:\/\/csharp.ihavenomoney.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/411\/revisions"}],"predecessor-version":[{"id":430,"href":"https:\/\/csharp.ihavenomoney.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/411\/revisions\/430"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/csharp.ihavenomoney.co.kr\/index.php?rest_route=\/wp\/v2\/media\/369"}],"wp:attachment":[{"href":"https:\/\/csharp.ihavenomoney.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=411"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/csharp.ihavenomoney.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=411"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/csharp.ihavenomoney.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=411"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}