Question 2: Your task is to create a GUI application that allows a user to create a group of Hero objects s (think Lord of the Your group may be a small band of two or three Heroes or it may cons...
Question 2: Your task is to create a GUI application that allows a user to create a group of Hero objects s (think Lord of the Your group may be a small band of two or three Heroes or it may consist of Rines or the Marvel Cinenatic Universe here) You have been given the compiled version of the dlass encapsulating a Hero and you have also been given the specification. Your job is to create a GUI application that allows the user to create an Arraylist of Hero objects. Your GUI should allow the following operations on your Hero list: . Add Hero objects to the list-your list should start out with zero Heroes. You should be able to add Hero objects by reading in from a text file or by adding them individually through the GUl. . Delete Hero objects from the list - you can delete by index number, bylhero name or both . Determine the Hero object with the highest energy level (i.e, the healthiest) . Cast a spell of "heal all" that adds a random number of energy points (say between 1 and 50) to all living Heroes. Remove all perished (ie, non-living) Heroes from the list Determine the total and average energy points of the entire group of Heroes . .Deternine if a particular Hero is in the list- search by name Write the current Hero list out to a new file Challenge!: Display the number of Heroes currently in the list- also display the number alive and the number that are not alive. Allow you to traverse the list-forwards and backwards-and allow you to modify the Heroes for properties that are modifiable) as they came up in the GU A file of Hero object data is included in the Eclpse package.
Question 2: Your task is to create a GUI application that allows a user to create a group of Hero objects s (think Lord of the Your group may be a small band of two or three Heroes or it may consist of Rines or the Marvel Cinenatic Universe here) You have been given the compiled version of the dlass encapsulating a Hero and you have also been given the specification. Your job is to create a GUI application that allows the user to create an Arraylist of Hero objects. Your GUI should allow the following operations on your Hero list: . Add Hero objects to the list-your list should start out with zero Heroes. You should be able to add Hero objects by reading in from a text file or by adding them individually through the GUl. . Delete Hero objects from the list - you can delete by index number, bylhero name or both . Determine the Hero object with the highest energy level (i.e, the healthiest) . Cast a spell of "heal all" that adds a random number of energy points (say between 1 and 50) to all living Heroes. Remove all perished (ie, non-living) Heroes from the list Determine the total and average energy points of the entire group of Heroes . .Deternine if a particular Hero is in the list- search by name Write the current Hero list out to a new file Challenge!: Display the number of Heroes currently in the list- also display the number alive and the number that are not alive. Allow you to traverse the list-forwards and backwards-and allow you to modify the Heroes for properties that are modifiable) as they came up in the GU A file of Hero object data is included in the Eclpse package.