Question: Need this code ASAP with output. I will surely upvote you. Task 1 The package resturant contains the class Task1 with the main method public

Need this code ASAP with output. I will surely upvote you.

Need this code ASAP with output. I will surely upvote you. Task

Task 1 The package resturant contains the class Task1 with the main method public static void main (String[] args) { Diner.createParty For (args); Diner.list All TheDiners(); } but the two methods it calls currently have empty bodies and you must change them to make it work. You will notice Taski expects to take values from the args parameter (see Exercise1G). These values are the names of the diners. The method createPartyFor() should use them to create and populate a static ar- ray in Diner called allTheDiners by creating a new Diner object for each name supplied with the correct value for its instance variable theDinersName. The second method call in Taski, listAllTheDiners() should print out The din- ers are on the first line followed by the names of the diners one to a line ending with a blank line. A static EasyWriter object called screen has already been declared in the class Diner which you must use to do display this information. To do this successfully you must fill in the bodies of three methods in Diner; the constructor, createPartyFor() and listAllTheDiners(). You may not change anything outside the bodies of these three methods. So a successful run of Taskl could look like this ... >java resturant/Task1 Harry Hermione Ron The diners are Harry Hermione Ron If you do this correctly with a perfectly written program you will get 40%

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