{"id":2136,"date":"2023-02-18T01:47:51","date_gmt":"2023-02-18T01:47:51","guid":{"rendered":"https:\/\/www.goodacademic.com\/blog\/questions\/help-me-understand-this-program-using-java-language\/"},"modified":"2023-02-18T01:47:51","modified_gmt":"2023-02-18T01:47:51","slug":"help-me-understand-this-program-using-java-language","status":"publish","type":"questions","link":"https:\/\/www.goodacademic.com\/blog\/questions\/help-me-understand-this-program-using-java-language\/","title":{"rendered":"Help me understand this program using JAVA language"},"content":{"rendered":"<div class=\"col-sm-12 messageContent\"><b>Learning Goal: <\/b>I&#8217;m working on a java presentation and need guidance to help me learn.<\/p>\n<p>Hello! I have my first java software oral exam coming up soon and will be asked questions and evaluated regarding this Morse Code to English and English to Morse Code program (attached). Basically, I need help understanding the program in terms of the java language.<\/p>\n<p>I need guidance and an explanation of how this code works and USE JAVA TERMS\/LANGUAGE to explain this code (like &#8220;this ___ object is created in order to call the ____ constructor in order to&#8230;., this variable is declared final because so&#8230;., this variable is declared as local because&#8230;, etc.) as well as the possible thought process of how this code is developed.<\/p>\n<p>Possible practical questions I could be asked would be:<\/p>\n<p>&#8211; What is an object\/class\/socket\/protected member\/private member\/static\/final\/instance, etc&#8230;?<\/p>\n<p>&#8211; Why did they choose to use this data structure\/control structure etc&#8230;? (EX: Why did they decide to use an Hashmap\/if-else loop\/private static final, etc&#8230; for this part?)<\/p>\n<p>&#8211; What is happening in this structure? (EX: what is happening in <code><span class=\"hljs-keyword\">private<\/span> <span class=\"hljs-keyword\">static<\/span> <span class=\"hljs-keyword\">final<\/span> HashMap &lt; Character, String &gt; englishToMorse = <span class=\"hljs-keyword\">new<\/span> <span class=\"hljs-title class_\">HashMap<\/span> &lt; Character, String &gt; ()<\/code><span class=\"redactor-invisible-space\">,<\/span> <code>(<span class=\"hljs-type\">char<\/span> c : phrase.toCharArray())<\/code>)<\/p>\n<p>&#8211; Instead of this structure, how would you change this program to also do &#8230;? *IMPORTANT<\/p>\n<p>&#8211; What could you have done differently to write the same program to execute the same output?<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Learning Goal: I&#8217;m working on a java presentation and need guidance to help me learn. Hello! I have my first java software oral exam coming up soon and will be asked questions and evaluated regarding this Morse Code to English and English to Morse Code program (attached). Basically, I need help understanding the program in [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":[],"disciplines":[654],"paper_types":[],"tagged":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/questions\/2136"}],"collection":[{"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/questions"}],"about":[{"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/types\/questions"}],"author":[{"embeddable":true,"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/comments?post=2136"}],"version-history":[{"count":0,"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/questions\/2136\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/media?parent=2136"}],"wp:term":[{"taxonomy":"disciplines","embeddable":true,"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/disciplines?post=2136"},{"taxonomy":"paper_types","embeddable":true,"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/paper_types?post=2136"},{"taxonomy":"tagged","embeddable":true,"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/tagged?post=2136"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}