(Solved) : Octavia Given List Movies Tired Deciding Watch Name Wants Able Pick Length Title Organize Q41338629 . . .

Java Code:Octavia has given you a list of movies. She is tired of deciding what to watch by name and now wants to be able to pick them

Octavia has given you a list of movies. She is tired of deciding what to watch by name and now wants to be able to pick them by the length of the title. Organize this list of movies for Octavia! The movies will be given as an array of strings. A Hash Map will need to be declared that keys each value in the array based on the length of each string. Example: “Double Down” keys to 11 “I am Here, Now” keys to 14 “Fateful Findings” keys to 19 “Pass Thru” keys to 9 Java’s built in Hash Map is enabled for this problem. The API can be viewed here: https://docs.oracle.com/javase/8/docs/api/java/util/HashMap.html 1 public HashMap<Integer, String> buildMap(String[] s) Nm Show transcribed image text Octavia has given you a list of movies. She is tired of deciding what to watch by name and now wants to be able to pick them by the length of the title. Organize this list of movies for Octavia! The movies will be given as an array of strings. A Hash Map will need to be declared that keys each value in the array based on the length of each string. Example: “Double Down” keys to 11 “I am Here, Now” keys to 14 “Fateful Findings” keys to 19 “Pass Thru” keys to 9 Java’s built in Hash Map is enabled for this problem. The API can be viewed here: https://docs.oracle.com/javase/8/docs/api/java/util/HashMap.html 1 public HashMap buildMap(String[] s) Nm

Expert Answer


Answer to Octavia has given you a list of movies. She is tired of deciding what to watch by name and now wants to be able to pick …