Question: Write the inputLicenses ( ) method in the Directory class. Within inputLicenses ( ) , use scnr to read pairs of inputs, character currGroup and

Write the inputLicenses() method in the Directory class. Within inputLicenses(), use scnr to read pairs of inputs, character currGroup and string currState, until '!' is read from input. Create each License object with currGroup and currState as arguments and append each object to ArrayList licenseList.
Ex: If the input is D CO A GA C UT B IA !, then the output is:
License group: D, State: CO License group: A, State: GA License group: C, State: UT License group: B, State: IA

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 Programming Questions!