Please don’t copy from chegg and course hero Solve in java show…

Question Answered step-by-step Please don’t copy from chegg and course hero Solve in java show… Please don’t copy from chegg and course hero Solve in javashow outputWrite Java code for reading a file containing Amazon’s people, construct an array list, and print all info in the following way:Top level of inheritance is Amazon, with variables name, id, age, type, startYear, abstract method weeklyPayHourly class inherits Amazon, with variables union (true or false), hoursWorked, hourlyPay, method weeklyPay. Union workers get extra 10%SalaryWorker class inherits Amazon, with variables salary, method weeklyPay (returns salary/52 with extra $200 for working more than 10 years)Exec inherits SalaryWorker, with variables bonus, method weeklyPay same as parent’s except that there is extra bonusNonExec inherits SalaryWorkerInput txt file contains name, id, age, type (exec, nonexec, hourly), startYear, salary,union (true or false), hoursWorked, hourlyPay. Note that name always contains just firstname and last name. Any variable not relevant to any type is left blankParse the input while constructing an ArrayList for all peopleFind name of person with the lowest pay. Count how many employees are with unions.Must do this with a single for loop going over all entries in the ArrayList.Note: Any class must not declare any variable its parent already has or any variable itdoes not need. Its method must use its parent’s method (when given) with additional modification whenever possible. Computer Science Engineering & Technology Java Programming Share QuestionEmailCopy link Comments (0)