Write a java class named mylinkedlist and implement it

Assignment Help C/C++ Programming
Reference no: EM13939888

Write a Java class MyLinkedList that includes implementation of:

i. int insertSortNoDuplicate(Object object) that will insert an object at correct position in the ascending (increasing) order. The method also will return -1 if the given object already exists in the current list, otherwise returns 0.

ii. Iterator getIterator(int order) that will return an Iterator object reference that will traverse the elements on the current based on the value of order. If the order is 0 then will traverse from head to tail, otherwise it will traverse from tail to head.

iii. void updateList(MyLinkedList otherlist) that will update the current list with a given otherlist. If an element in current list exists in the otherlist then replace (update) it, otherwise insert (add) it using the above insertSortNoDuplicate method.

Reference no: EM13939888

Questions Cloud

Makes it financially critical to maintain credit score : Mortgage lenders base the mortgage interest rate they offer you on your credit rating. This makes it financially critical to maintain a credit score of 700 or higher. How much more interest would you pay on a $184,000 home if you put 20% down and fin..
Problem regarding the strong organisational culture : What is meant by the term "strength" of organisational culture? What possible positive and negative consequences can arise from a strong organisational culture? What is the role of leadership in determining and managing organisational culture?
Private and public cloud storage and security concerns : Write a Literature Review on "Private and public cloud storage and Security concerns".
Analyze what is wrong with the hypothesis given : Read the scenario below and then analyze what is wrong with the hypothesis given. Renee has noticed that a few of her friends have better eyesight than she does. She watches what they eat and then decides to come up with a hypothesis. Her hypothes..
Write a java class named mylinkedlist and implement it : void updateList(MyLinkedList otherlist) that will update the current list with a given otherlist. If an element in current list exists in the otherlist then replace (update) it, otherwise insert (add) it using the above insertSortNoDuplicate metho..
Assign costs to units transferred out and ewip : Using the weighted average method, calculate the equivalent units for January. Calculate the unit cost for January. Assign costs to units transferred out and EWIP.
What would her monthly payment be : Oprah Winfrey has closed on a 42-acre estate near Santa Barbara, California, for $53,000,000. If Oprah puts 20% down and finances at 7% for 30 years, what would her monthly payment be?
Possible level of efficiency in gas pipeline : Critically assess the view that independent regulatory agencies are necessary to achieve the best possible level of efficiency in gas pipeline and electricity wires businesses.
Using the add-on method : Using the add-on method, calculate the APR of a loan for $11,350 at 9% for 3 years. (Do not round intermediate calculations. Round your answer to the nearest tenth percent.)

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Books with suitable members

Design a system using a class called Books with suitable members

  Write a program to track hourly employee arrival

A company hires you to write a program to track hourly employee arrival and departure times from work. In essence, you are tasked to make an online time clock - If the user enters an incorrect value more than 3 times, display a prompt that the prog..

  Test all the memeber function and overloaded operators

Write a program to test all the memeber function and overloaded operators in your class definition.

  Program reads a number and prints all of its binary digit

Write a program that reads a number and prints all of its binary digits. Print the remainder number % 2, thenreplace the number with number / 2. Keep going until the number is 0.

  Design your own test program to test the modification.

Add method Modify(int id, char*, char*, float, char*) to modify the id's record. If such id not exist, add it as a new record into the list

  Write a program that right-justifies text

Write a program that right-justifies text. It should read and echo a sequence of left-justified lines and then print them in right-justified format.

  Where s is any string

Write a function detab(s, stop), where s is any string, and stop is a positive integer called tabstop size. This function should return a string which is like s.

  Summarizing your predicted and actual output

Write a statement summarizing your predicted and actual output, and identify and explain any differences. For your conclusions, write at least one nontrivial paragraph that explains, in detail, either a significant problem you had and how you solv..

  Write a program that analyzes a months worth of temperatures

Write a program that analyzes a month's worth of temperatures. Provide a menu for the user to choose which statistics they want.

  Assume that section

Assume that section _1 seats are in front of the stage, and the price is expensive. say, each seat in the 1st three rows is $180.00, and each seat in the last two rows is 10% less;

  Compute the area of a circle

Develop the program that will convert the temperature from degree Celsius to degree Fahrenheit. User input the temperature in Fahrenheit. The relation is 1)  Develop the program that will convert the temperature from degree Celsius to degree Fahrenhe..

  Write c program which compute acceleration of jet fighter

Write a C++ program which compute the acceleration (m/s 2) of jet fighter launched from aircraft-carrier based catapult, provided jet's takeoff speed in km/hr

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