Write a java class using generics

Assignment Help Computer Engineering
Reference no: EM132200502

You are to write a Java Class using Generics. This class is to be a Double Linked List container for holding other objects which are comparable.

The Class should support the following features: Print the elements of the collection in order (ascending). Insert an item. Remove an item. Empty the collection.

Find the index of an element, using a binary recursive search. The program should include a driver class (Main) that provides a command line input/output.

This driver class should: Print a prompt indicating options to test each of the features above.

Provide an option to exit. Accept command-line input for both integer and decimal values (such as 2.3).

Additional Requirements

The class should be named MyList.java The main class should be named Main.java You are not to use any third party packages for List type collections.

The only packages you should be using are for the Input/Output and for holding the input data. All code should have proper error checking and should have no unexpected termination.

If invalid data is input, the user should be informed of it and allowed to re-enter the data.

Reference no: EM132200502

Questions Cloud

What is an isotope : What is an isotope? Does it mean there is a different number of protons or neutrons?
Write a client class to test all the methods in your class : Write a java class encapsulating the concept of daily temperatures for a week. A constructor accepting an array of seven temperatures as a parameter.
Represents the reaction that takes place : A mixture containing 9 mol of F2 and 4 mol of S is allowed to react. This equation represents the reaction that takes place.
Analyze a paragraph for readability using the coleman-liau : Write a Java console application that analyzes a paragraph for readability using the Coleman-Liau index.
Write a java class using generics : You are to write a Java Class using Generics. This class is to be a Double Linked List container for holding other objects which are comparable.
What is the mac of fluoride in drinking water : What is the MAC of fluoride in drinking water? How does fluoride gets into drinking water?What are the health effects of overexposure to fluoride?
Extremely hot flame when it burns in pure oxygen : Acetylene gas (C2H2) used in welding, produces an extremely hot flame when it burns in pure oxygen according to the reaction
Display the name and current balance for this object : Write a Java class called BankAccount (Parts of the code is given below), which has two fields name (String) and balance (double).
Write a java for loop that iterates an array of type double : Write a Java for loop that iterates an array of type double named dArray, of any size, and replaces each element with its squareroot.

Reviews

Write a Review

Computer Engineering Questions & Answers

  What persuasion methods would you say work best for you

What persuasion methods would you say work best for you? Explain your response with examples of types of persuasion you have used in the workplace.

  What is difference between persistent and transient objects

What is the difference between persistent and transient objects? How is persistence handled in typical OO database systems?

  How vlans contribute to the security of a wireless network

How VLANs contribute to the security of a wireless network. Do you see any need to implement more than one VLAN for wireless beyond the Guest VLAN?

  Write each english language statement as a predicate wff

Using the predicate symbols shown and appropriate quantifiers, write each English language statement as a predicate wff.

  Advanced qos configuration

Advanced QoS Configuration, Write a paragraph below that summarizes what was accomplished in this lab and what you learned by performing it

  Make a table in microsoft word

build a table in Microsoft Word or Excel that lists the strengths and challenges of each of the following four system development life cycles presented in the text.

  Evaluate the efficiency and accuracy of storage techniques

Evaluate the efficiency, speed, and accuracy of the storage and retrieval techniques that two search engine organizations currently use.

  Recognize where the program planning and assessment process

identify where the program planning and evaluation process can provide opportunities for program improvement. explain

  Approaches to reduce material cost in a cloud based solution

Identify 2-3 approaches to reduce material cost in a cloud based solution. Identify an example or make one up where ITD's resulted in substantial reduction.

  What kind of responses must p and g make to enable

What are the implications of these changes for managing P&G human capital?

  Describe an efficient algorithm that can use rustbucket

Describe an efficient algorithm that can use Rustbucket to sort n music files correctly and show that your algorithm has expected running time that is 0.

  Find a critical race-free assignment

Find a critical race-free assignment for the following reduced table by each of the three state assignment methods.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd