Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Transactions On Large Scale Data And Knowledge Centered Systems Xxiv Special Issue On Database And Expert Systems Applications Lncs 9510

Authors: Abdelkader Hameurlain ,Josef Kung ,Roland Wagner ,Hendrik Decker ,Lenka Lhotska ,Sebastian Link

1st Edition

366249213X, 978-3662492130

More Books

Students also viewed these Databases questions

Question

Discuss the key people management challenges that Dorian faced.

Answered: 1 week ago

Question

How fast should bidder managers move into the target?

Answered: 1 week ago