Arrays and Lists

Arrays and Lists
The previous Discussions have provided the opportunity to share some elegant solutions to programming challenges, and many of them share one common trait—they all handle multiple objects with ease. Forget, for the moment, about some of the complexity involved. The formulas may seem strange, but do not worry. At this stage of programming, you are not expected to generate such things on your own; very few new programmers can. Instead, stop to consider the ways programs embrace the computer’s true assets.

Machines do not mind doing the same thing over and over again; they never get bored. They are also capable of handling massive amounts of data in an impeccably organized manner. One of your challenges as a programmer is to communicate, through code, in an efficient way that plays to the computer’s strengths.

Don't use plagiarized sources. Get Your Custom Essay on
Arrays and Lists
Get an essay WRITTEN FOR YOU, Plagiarism free, and by an EXPERT!
Order Essay

Consider, for example, having to write a program to manage personnel records for all of the people working for your company. You certainly would not want to have to write a program with a unique variable for each unique person in the company. Every time a new employee was hired, someone would have to modify the program to add a new variable for that employee. Every time an employee left the company, someone would have to modify the program to remove that employee’s variable and data from the program. Clearly, this would be a very tedious way to automate personnel records. Instead, you need a way to manage that collection of personnel information in a more organized manner. In fact, you need a way of representing the collection of individual employees as just that, a single variable that provides access to all of the employees. Then, you can use loops to process the employee data. Fortunately, Java provides the concept of an array (and other similar collections, such as the ArrayList) to manage collections of similar objects.

It takes time to truly grasp how powerful object-oriented programming can be and how you can harness its “objects-first” focus to make your own programs concise and elegant. Unfortunately, some programmers do not invest at that time. They rely on brute force—repetitive methods resulting in long programs that are, by nature, hard to review and debug.

Return to the open-source repositories you previously explored. Find a program that (A) uses at least one loop and a list effectively or (B) could use a loop and a list to improve the program.

By Day 3
Post a response that summarizes your findings. The post should:

Include a copy of the code that either (A) exemplifies concise, generalized code or (B) presents the perfect opportunity to apply loops, arrays, and lists to reduce the length of the program using a more elegant solution. Do not undertake a lengthy program; limit your code to approximately 20 lines.
If the code is an exemplar of good coding, explain what leads you to that conclusion. Be specific.
If the code needs improvement, include a rewritten version of the code, in which you apply one of the methods described above to improve the program. Explain how your solution better embraces a computer’s strengths as a tool that can perform calculations quickly, perform repetitive tasks, and/or manage data effectively.
Add or revise comments in the code to accurately describe the function of the loop and list.
Do not include the entire source code of the program you choose. Select just the portion with the necessary information, such as variable declarations and methods called from outside the class or method.

By Day 6
Respond to two other colleagues’ posts. Consider the original and modified code that they posted. Decide whether the improvements posted to improve the program. Be specific, and explain your answers.

Homework Paper
Order NOW For A 10% Discount!
Pages (550 words)
Approximate price: -

Our Advantages

Plagiarism Free Papers

All our papers are original and written from scratch. We will email you a plagiarism report alongside your completed paper once done.

Free Revisions

All papers are submitted ahead of time. We do this to allow you time to point out any area you would need revision on, and help you for free.

Free Title-page

A title page preceeds all your paper content. Here, you put all your personal information and this we give out for free.

Free Bibliography

Without a reference/bibliography page, any academic paper is incomplete and doesnt qualify for grading. We also offer this for free.

Originality & Security

At, we take confidentiality seriously and all your personal information is stored safely and do not share it with third parties for any reasons whatsoever. Our work is original and we send plagiarism reports alongside every paper.

24/7 Customer Support

Our agents are online 24/7. Feel free to contact us through email or talk to our live agents.

Try it now!

Calculate the price of your order

We'll send you the first draft for approval by at
Total price:

How it works?

Follow these simple steps to get your paper done

Place your order

Fill in the order form and provide all details of your assignment.

Proceed with the payment

Choose the payment system that suits you most.

Receive the final file

Once your paper is ready, we will email it to you.

Our Services

We work around the clock to see best customer experience.


Flexible Pricing

Our prices are pocket friendly and you can do partial payments. When that is not enough, we have a free enquiry service.


Admission help & Client-Writer Contact

When you need to elaborate something further to your writer, we provide that button.


Paper Submission

We take deadlines seriously and our papers are submitted ahead of time. We are happy to assist you in case of any adjustments needed.


Customer Feedback

Your feedback, good or bad is of great concern to us and we take it very seriously. We are, therefore, constantly adjusting our policies to ensure best customer/writer experience.