Question: Write the inputLessons ( ) method in the Inventory class. Within inputLessons ( ) , use scnr to read each line number until - 9
Write the inputLessons method in the Inventory class. Within inputLessons use scnr to read each line number until is read from input. If the line number is not equal to :
Create a new Lesson object.
Use the Lesson object's readDetails method to read the lesson's duration and topic from input.
Append the Lesson object to ArrayList lessonList.
Ex: If the input is:
Finance Agriculture Environment
then the output is:
Lesson duration: Topic: Finance Lesson duration: Topic: Agriculture Lesson duration: Topic: Environment
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
