Purchase Solution

Java array manipulation with and without java 3rd party libraries

Not what you're looking for?

Ask Custom Question

Please help to create two separate Java codes resulting in the same output (one using Apache Commons library and one using the standard Java methods). The program should count all people with the same last name and then change the last name to Doe.

See the attachments.

When using the Apache Commons library it has been suggested to use countMatches(), select() and replace() or overlay() methods though I have not been able to find documentation on the select() method.
I have attached my Person class and the Tester programs which reads in a text file with the Person data, parses the data and puts into an arrayList and then sorts by last name. All of this is functional. The problem I run into is comparing the last names. If I could specify in advance the string I am comparing and just spit that count out I can do that easily, however I do not know how to start this when I do not know what if any names match.

Purchase this Solution

Solution Summary

The solution discusses the Java array manipulation with and without Java 3rd party libraries.

Solution Preview

I created a new class called PersonUtils. It has two static functions to replace duplicate ...

Purchase this Solution


Free BrainMass Quizzes
Word 2010: Table of Contents

Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.

C# variables and classes

This quiz contains questions about C# classes and variables.

Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.

C++ Operators

This quiz tests a student's knowledge about C++ operators.

Basic Computer Terms

We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.