Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need this in Java Fx You are working for NuSoft, a software company that makes custom software for many clients. The manager of software

I need this in Java Fx

You are working for NuSoft, a software company that makes custom software for many clients. The manager of software development has reviewed the company's software products and discovered that many of the Java applications the company builds includes one or more ArrayList. Additionally, analysis of the software has identified several actions that are performed on the ArrayLists including finding the minimum and maximum values they contain as well as determining the distinct (unique) elements in those ArrayLists. A decision has been made to add these features to the ArrayList to create a new, custom ArrayList. The new ArrayList will be kept in a Java package for custom classes used by all programmers in the company instead of the standard ArrayList.

Design a new parameterized ArrayList called NuArrayList. This can be achieved by implementing compositionmaking a java.util.ArrayList a data member of NuArrayList. The NuArrayList class should include two methods: min and max. This class will be used by all programmers in the company so it should be in a package called nusoft.utils.

public > E max() returns the maximum element in an ArrayList

public > E min() returns the minimum element in an ArrayList

This class NuArrayList must NOT have a main method.

Create a class to demonstrate the use of your NuArrayList class. This class will not be used by the entire company. It should not be in the nusoft.utils package. Put it in an appropriate package. This class will

1. generate at least 25 random java.lang.Integer objects, 2. add the integer objects to a NuArrayList object 3. display the contents of the NuArrayList object 4. display the minimum and maximum elements it contains 5. Repeat steps 1 - 4 using random java.lang.Character objects 6. Repeat steps 1 - 4 using random java.util.Date objects

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

Database Concepts

Authors: David M. Kroenke, David J. Auer

7th edition

133544621, 133544626, 0-13-354462-1, 978-0133544626

More Books

Students also viewed these Databases questions

Question

2. Identify issues/causes for the apparent conflict.

Answered: 1 week ago