subject

In this assignment you are required to extend the linkedlist. java file to include the methods: addlist, subtractlist, and reverselist:

1. addlist:

this method is supposed to take another linked list as a parameter, and add the contents of this linked list to the calling instance's linked list. adding the elements should only be done if the element does not already exist. all elements to be added should be added at the end of the linked list.

2. subtractlist:

this method does the opposite of addlist. it is to take another linked list as a parameter and remove the contents of this linked list from the calling instance's linked list. elements are only removed if they exist.

3. reverselist()

no parameters passed, but it should reverse the contents of the list.

what to do and what to submit?

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 14:10
Dean wants a quick way to look up staff members by their staff id. in cell q3, nest the existing vlookup function in an iferror function. if the vlookup function returns an error result, the text “invalid staff id” should be displayed by the formula. (hint: you can test that this formula is working by changing the value in cell q2 to 0, but remember to set the value of cell q2 back to 1036 when the testing is complete.)
Answers: 3
question
Computers and Technology, 23.06.2019 02:30
What is the power dissipated by a resistor with a current of 0.02 a and a resistance of 1,000 ? a. 200 w b. 20 w c. 0.4 w d. 4 w
Answers: 1
question
Computers and Technology, 23.06.2019 03:10
Acomputer has a two-level cache. suppose that 60% of the memory references hit on the first level cache, 35% hit on the second level, and 5% miss. the access times are 5 nsec, 15 nsec, and 60 nsec, respectively, where the times for the level 2 cache and memory start counting at the moment it is known that they are needed (e.g., a level 2 cache access does not even start until the level 1 cache miss occurs). what is the average access time?
Answers: 1
question
Computers and Technology, 23.06.2019 06:30
Which option correctly describes a dbms application? a. software used to manage databases b. software used to organize files and folders c. software used to develop specialized images d. software used to create effective presentations
Answers: 1
You know the right answer?
In this assignment you are required to extend the linkedlist. java file to include the methods: add...
Questions
question
Biology, 29.10.2019 04:31
question
Social Studies, 29.10.2019 04:31
Questions on the website: 13722367