Question: Write the inputLicenses ( ) method in the Directory class. Within inputLicenses ( ) , use scnr to read each entry number until - 1

Write the inputLicenses() method in the Directory class. Within inputLicenses(), use scnr to read each entry number until -1 is read from input. If the entry number is not equal to -1:
Create a new License object.
Use the License object's readDetails() method to read the license's fee and state from input.
Append the License object to ArrayList licenseList.
Ex: If the input is:
1135 OH 2130 NY 3180 MS 4225 GA -1
then the output is:
License fee: 135, State: OH License fee: 130, State: NY License fee: 180, State: MS License fee: 225, State: GA

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!