solve in java
Part 1: Implement the following clue Check the nutes below before you start Acontent Vehicle vehide werString matriculation Sering model Song - Vehicle Al Parameters etters/pettes .toString: String Date Dute addiw Vehicle Vehieved custolled boolean contenant Ownevoid Motorcycle -tongue double type: Sering / standard, cruiser er sport + Motorcycle All Parameters-> + setter etter toStrine String ombo Cle toStrine String Notes: 1 The Vehicle class cps) #TheToString method would returns String similar to Model: BMW Owner: Ali Mo, Marico 51234 2. The car class (1 pts) The ToString method should reuma String samt to: Cat: BMW Owner Ali Mosa Matriculatie: S123. Automatic 255 hp OR Car BMW.Owner: Al Moe, Matriculatie S123 Mamal 135 hp The motorcycle clas(1pts) The toString method should rema String similar Sport Meterycle BMW Owner Ali Mouse Matriculation: 51234 SON 4 The Accident Report clase: 45pts) a. The involvement array can have a mot clement b. The date data field should include the curent date feestdate of object creatin) The neotvehicle should tester the real number of melet Venice o many elements has been The AccidentReport constructor will create an object the current date, involvement array of size 10 and vehicle equal to see adNewVeider Vehicle addrew Vehide to the may he is not full 1 Cruiser Motoinvolved returns true fa Motorcycle of this has been involved in the accident. And tale otherwise by searching the involvement count utomatical) returns the number of tomatic costat has been involved in this ident by searching the involvement way displayOwner Display the names of owners of love Part 2: Implement a driver class manchas) as follows (2 1. Create an Accident Report object 2. Add to the report object 2 Curs djects and 1 Motorcycle of your choice 3. Add to the report object one automatic Car of Moderhorsepower equal to 500 owned by oussama atwi and has matriculation b123123 # Display the number of automatic cars involved in this report 5 Display it any cruiser motorcycle has been involved 6 Display all Owners names Part 1: Implement the following clue Check the nutes below before you start Acontent Vehicle vehide werString matriculation Sering model Song - Vehicle Al Parameters etters/pettes .toString: String Date Dute addiw Vehicle Vehieved custolled boolean contenant Ownevoid Motorcycle -tongue double type: Sering / standard, cruiser er sport + Motorcycle All Parameters-> + setter etter toStrine String ombo Cle toStrine String Notes: 1 The Vehicle class cps) #TheToString method would returns String similar to Model: BMW Owner: Ali Mo, Marico 51234 2. The car class (1 pts) The ToString method should reuma String samt to: Cat: BMW Owner Ali Mosa Matriculatie: S123. Automatic 255 hp OR Car BMW.Owner: Al Moe, Matriculatie S123 Mamal 135 hp The motorcycle clas(1pts) The toString method should rema String similar Sport Meterycle BMW Owner Ali Mouse Matriculation: 51234 SON 4 The Accident Report clase: 45pts) a. The involvement array can have a mot clement b. The date data field should include the curent date feestdate of object creatin) The neotvehicle should tester the real number of melet Venice o many elements has been The AccidentReport constructor will create an object the current date, involvement array of size 10 and vehicle equal to see adNewVeider Vehicle addrew Vehide to the may he is not full 1 Cruiser Motoinvolved returns true fa Motorcycle of this has been involved in the accident. And tale otherwise by searching the involvement count utomatical) returns the number of tomatic costat has been involved in this ident by searching the involvement way displayOwner Display the names of owners of love Part 2: Implement a driver class manchas) as follows (2 1. Create an Accident Report object 2. Add to the report object 2 Curs djects and 1 Motorcycle of your choice 3. Add to the report object one automatic Car of Moderhorsepower equal to 500 owned by oussama atwi and has matriculation b123123 # Display the number of automatic cars involved in this report 5 Display it any cruiser motorcycle has been involved 6 Display all Owners names