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

  Write a user-defined function that accepts these four points

Write a user-defined function that accepts these four points as input and computes the coefficients a, b, c, and d.

  Create an executive summary to introduce company

Create an Executive Summary to introduce your development "company", review the problems to be solved (this is not just copying the Case Study but an analysis of the real problems) and outlining a computer solution for the case study

  Post one federal and one state statute utilizing standard

Using a Microsoft Word document, please post one federal and one state statute utilizing standard legal notation and a hyperlink to each statute.

  Determine the angle by which minute hand turned

Determine the angle by which minute hand turned since the start of the current hour. Input and output in this problems are floating-point numbers.

  Write a simulator for a one-way direct mapped cache

Write a simulator for a 1-way direct mapped cache. Make the number of entries and the line size parameters of the simulation. Experiment with it and report on your findings.

  Explain what a system bus is and why it is needed

Explain what a system bus is and why it is needed. Summarize the use of Boolean operators in computer-based calculations. Categorize the various types of memory and storage.

  Outline a plan that sets the expectations for your team

Imagine that you are an agile coach. Outline a plan that sets the expectations for your team when beginning a project. Provide a rationale for your response.

  How an interrupt handler would address the event

Set the context for the interrupt disk read and describe how an interrupt handler would address the event.

  Chomsky normal form

Requesting assistance with the Theory of Computing.Construct a PDA that accepts L.

  What is the factor of safety

Apply the torque at the center of the middle part where you grip the drill. Fix both the top and the bottom faces. What is the factor of safety?

  Write a program which will give the user the menu of options

SEFP - Computing Programming Assignment - write a program which will give the user the menu of options - Enter a word Invite the user to enter a word

  Write a private statement that declares a 10-element

Create a VB.Net Windows Form application named ComputerProject_YourName. Change the name property of your form to frmMain.

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