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: actorInfo("Matthew McConaughey", actors) outputs "Matthew McConaughey plays Cooper in Interstellar" and actorInfo("Nicole 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
 Complete the actorInfo() method, which takes an actor name and actors

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!