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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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