Question: Given the following program skeleton that stores information about the characters in the Big Bang Theory television show. Replace the line with code that implements
- Given the following program skeleton that stores information about the characters in the Big Bang Theory television show. Replace the
line with code that implements a displayActor method. The method receives a character’s name and searches for the name in the array of BigBangCharacter objects. If the character is found, display the actor who plays the character. Otherwise, print that the character wasn’t found. See the sample sessions for output format details.
![import java.util.Scanner; public class BigBangCast { private BigBangCharacter[] characters; public](https://dsd5zvtm8ll6.cloudfront.net/images/question_images/1704/8/0/2/259659d37d3087241704802259314.jpg)
![public static void main(String[] args) { Scanner stdIn = new Scanner (System.in); String character; }](https://dsd5zvtm8ll6.cloudfront.net/images/question_images/1704/8/0/2/767659d39cff3ab31704802767999.jpg)
import java.util.Scanner; public class BigBangCast { private BigBangCharacter[] characters; public BigBangCast (BigBangCharacter[] characters) { this.characters = characters;
Step by Step Solution
3.46 Rating (159 Votes )
There are 3 Steps involved in it
To implement the displayActor method according to your requirements you should iterate through the a... View full answer
Get step-by-step solutions from verified subject matter experts
