Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1.) Your advice for Jing on how to fix the update problem. 2.) At least 8 specific suggestions on how to refactor the code Paste
1.) Your advice for Jing on how to fix the update problem. 2.) At least 8 specific suggestions on how to refactor the code Paste your refactored code at the end of this document, and follow it with a list of the changes that you made Here is the source code Jing asked you to code review (you can cut and paste from this document) * Refactoring Example import javaawt* import java util*; public class PhoneBook! extends tame implements ActionListener private JTextField iN. jPb; private JButton ibtAdd. ?. ibtund,? private ArrayList String> pl, RL updated for v5.0 private int last. 1 ; // Main method public static void main(Stringll args) intx1-300 intyl -130 PhoneBook 1 frame = new PhoneBook 10 framesetSize(x1, y1) framesetVisible(true) // Constructor public PhoneBook10 nl-new ArayList-String (20); initially set for up to 20 entries; upd for v5.0 Lnew ArayList-String (20);// initially set for up to 20 entries; upd for v5.0 setTitle" Phone Book") 1.) Your advice for Jing on how to fix the update problem. 2.) At least 8 specific suggestions on how to refactor the code Paste your refactored code at the end of this document, and follow it with a list of the changes that you made Here is the source code Jing asked you to code review (you can cut and paste from this document) * Refactoring Example import javaawt* import java util*; public class PhoneBook! extends tame implements ActionListener private JTextField iN. jPb; private JButton ibtAdd. ?. ibtund,? private ArrayList String> pl, RL updated for v5.0 private int last. 1 ; // Main method public static void main(Stringll args) intx1-300 intyl -130 PhoneBook 1 frame = new PhoneBook 10 framesetSize(x1, y1) framesetVisible(true) // Constructor public PhoneBook10 nl-new ArayList-String (20); initially set for up to 20 entries; upd for v5.0 Lnew ArayList-String (20);// initially set for up to 20 entries; upd for v5.0 setTitle" Phone Book")
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started