Question: Complete the actorInfo ( ) method, which takes an actor name and actors map as arguments. The method should output to the console {
Complete the actorInfo method, which takes an actor name and actors map as arguments. The method should output to the console actorName plays role in movie if the actor is found. Otherwise, the method outputs "Actor not found". Ex: actorInfoMatthew McConaughey", actors outputs "Matthew McConaughey plays Cooper in Interstellar" and actorInfoNicole Kidman", actors outputs "Actor not found".Complete the actorInfo method, which takes an actor name and actors map as arguments. The method should
output to the console actorName plays role
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
