import java.util.ArrayList; // import jave array list import javax.swing.JOptionPane; // import java option pane // JoptioPane Demo from Class Handouts import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; public class AttackMonitor { ArrayListattacks = new ArrayList(); //part I // should we set it in \"private list? // input function void input(){ // declare same values from attack class String Monstername, location, date; int id; int Victim_number; // id monstername, location, date, victim number id = Integer.parseInt(JOptionPane.showInputDialog(\"Enter the id: \")); Monstername = JOptionPane.showInputDialog(\"Enter the monster\'s name: \"); location = JOptionPane.showInputDialog(\"Enter the attacked location: \"); date = JOptionPane.showInputDialog(\"Enter the date: \"); Victim_number = Integer.parseInt(JOptionPane.showInputDialog(\"Enter the Victim numbers: \")); // attack temp = new attack(id,date,Monstername,location,Victim_number); //// id monstername, location, date, victim number attacks.add(temp); } // end function // display function void display(){ for (int i= 0; i< attacks.size(); i++){ // keep doing it till i reach attacks time System.out.println(attacks.get(i)); } // end for } // end function // delete function void delete(){ display(); // get attack id to delete int id = Integer.parseInt(JOptionPane.showInputDialog(\"Enter the id of attack to delete\")); int i; for (i= 0; i Solution import java.util.ArrayList; // import jave array list import javax.swing.JOptionPane; // import java option pane // JoptioPane Demo from Class Handouts import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; public class AttackMonitor { ArrayListattacks = new ArrayList(); //part I // should we set it in \"private list? // input function void input(){ // declare same values from attack class String Monstername, location, date; int id; int Victim_number; // id monstername, location, date, victim number id = Integer.parseInt(JOptionPane.showInputDialog(\"Enter the id: \")); Monstername = JOptionPane.showInputDialog(\"Enter the monster\'s name: \"); location = JOptionPane.showInputDialog(\"Enter the attacked location: \"); date = JOptionPane.showInputDialog(\"Enter the date: \"); Victim_number = Integer.parseInt(JOptionPane.showInputDialog(\"Enter the Victim numbers: \")); // attack temp = new attack(id,date,Monstername,location,Victim_number); //// id monstername, location, date, victim number attacks.add(temp); } // end function // display function void display(){ for (int i= 0; i< attacks.size(); i++){ // keep doing it till i reach attacks time System.out.println(attacks.get(i)); } // end for } // end function // delete function void delete(){ display(); // get attack id to delete int id = Integer.parseInt(JOptionPane.showInputDialog(\"Enter the id of attack to delete\")); int i; for (i= 0; i.