Write a java program of the implementation of a linked list

Assignment Help Computer Engineering
Reference no: EM132200782

Question :

Write a Java program of the implementation of a linked list. The program includes lList.java and lListTester.java.

Note: in lListTester.java you have to use TDD (test-driven development) to develop the class.

Here is the specification for the lLink class:

<>

lList

+info : string

+nextList : lList

+isEmpty() : bool

+insert()

+nextList() : lList

+lSize() : int

+deleteInfo()

+traverse() : string

The behaviors are as follows:

isEmpty() return true if lList is empty, i.e. info is null and nextList is null.

insert(inInfo) returns nothing. Place inInfo into lList as a new lList at the beginning of the current lList.

nextList() returns lList. If the current list is not empty, it returns a reference to the beginning of the remaining list. If the current list is empty it returns null. If the current list references "G" then this.nextList() would return a reference to "F". If the current list is empty (/) then this.nextList() would return null.

lSize() returns an integer which counts the number of none-empty sublists in the current list + 1. If this references "G" then this.lSize() would return 3. If this references "F" then this.lSize() would return 2/ If this references / then this.lSize() would return 0.

deleteInfo(outInfo) returns a reference to the start of the list following the information removed if it exists.

traverse() returns a string which is the current natural order of the linked list as a comma separated set of strings.

Reference no: EM132200782

Questions Cloud

Which cache block will the memory reference : Suppose a computer using fully associative cache has 216 words of main memory and a cache of 64 blocks, where each cache block contains words 32.
Write a java program that implements bubble sort : Write a Java Program that implements Bubble Sort with user input of numbers.
Ajax applications are gaining in popularity : Why do you think AJAX applications are gaining in popularity? What are their advantages?
Determine and return the zodiac sign : Write a JAVA program called ZodiacFinder.java that takes two integers as input (month and day) and prints the Zodiac sign corresponding to the month.
Write a java program of the implementation of a linked list : Write a Java program of the implementation of a linked list. The program includes lList.java and lListTester.java.
Given a tiny computer that has a word size of 6 bits : Given a tiny computer that has a word size of 6 bits, what is the smallest negative number this computer can represent ones complement?
Implement a superclass appointment and subclasses onetime : Implement a superclass Appointment and subclasses Onetime, Daily, and Monthly. An appointment has a description and a date.
Should the money be invested : Suppose that a town is considering investing money into making a public show in a park that can be enjoyed by families during a weekend.
Write a java program that calculates average of math : Write a java program that calculates average of math, science grade as well as total class average.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Intersection of the row and column

The cell formed by the intersection of the row and column contains two ciphertext characters. What constraint must the matrix adhere to and how many keys are there?

  Design a simple card guessing game

CP5639 Problem Solving and Programming - create a solution to the problem. Your solution will be presented as a runnable flowchart and will be detailed in a pl

  How many block frames are there in the cache

How many block frames are there in the cache? Explain the bit fields needed for addressing each word in the two-level memory system.

  Write a program that allows the user to use a button

Write a program that allows the user to use a button to toggle the color of the text in a text box between black and red.

  Make any dfa in jflap software and run for several inputs

Make any DFA in JFLAP software and run for several inputs. Take a screen shot and include in your assignment. Keep in mind that this assignment is meant to make you all get familiar with this software.

  What is a top-level domain name

What is a domain name? What is a top-level domain name? How does the current domain name system try to resolve a hostname?

  Clarify security mechanisms available for a database

Clarify security mechanisms available for a database

  Which auditing scopes is most likely to apply

A large organization's enterprise resource planning (ERP) system is being audited. Which of the following auditing scopes is most likely to apply?

  Design an application that allows a user to input a price

Design application that allows a user to input a price until appropriate sentinel value is entered. Output is price of each item on each day, one through seven.

  Demonstrate demorgan laws using a venn diagram

Demonstrate DeMorgan's Laws using a Venn diagram. Draw a Venn diagram showing the elements of sets A, B, and the universe for all 4 regions. Draw a second diagram showing only the elements of the complement of set A

  What tools you would need to conduct the site

what tools you would need to conduct the site survey and why each is required.

  What method would implement that

But with my method, I can't see where a circular array fits. What method would implement that?

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