Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!