{"id":536,"date":"2023-11-27T14:29:51","date_gmt":"2023-11-27T14:29:51","guid":{"rendered":"https:\/\/javigomez.org\/?p=536"},"modified":"2025-09-29T20:33:44","modified_gmt":"2025-09-29T20:33:44","slug":"u05-01-funciones","status":"publish","type":"post","link":"https:\/\/javigomez.org\/index.php\/2023\/11\/27\/u05-01-funciones\/","title":{"rendered":"U05-01-Funciones"},"content":{"rendered":"\n<p>En Java, una funci\u00f3n se refiere a un bloque de c\u00f3digo que realiza una tarea espec\u00edfica y puede ser invocado desde otras partes del programa.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import java.util.Scanner;\n\npublic class A000 {\n\n\tpublic static void main(String&#91;] args) {\n\t\tSaludar();\n\t\tSystem.out.println(\"****************\");\n\t\tSaludar();\n\t\tSystem.out.println(\"****** Fin programa *********\");\n\t}\n\tstatic void Saludar() {\n\t\tfor (int i=0;i&lt;3;i++) {\n\t\t\tSystem.out.println(\"Hola\");\n\t\t}\n\t}<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Java U05 01 funciones\" width=\"1200\" height=\"675\" src=\"https:\/\/www.youtube.com\/embed\/6uZpxUB2EBs?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>En Java, una funci\u00f3n se refiere a un bloque de c\u00f3digo que realiza una tarea espec\u00edfica y puede ser invocado desde otras partes del programa.<\/p>\n","protected":false},"author":1,"featured_media":539,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[167,203],"class_list":["post-536","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-java","tag-funciones","tag-java"],"_links":{"self":[{"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/posts\/536","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/comments?post=536"}],"version-history":[{"count":1,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/posts\/536\/revisions"}],"predecessor-version":[{"id":914,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/posts\/536\/revisions\/914"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/media\/539"}],"wp:attachment":[{"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/media?parent=536"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/categories?post=536"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/tags?post=536"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}