Java class UnorderedList
Not what you're looking for?
Public class UnorderedList
{
public UnorderedList()
// Post: List is the empty list.
public boolean contains(String item)
// Post: If item is in the list contains is
// True; False, otherwise
public void add(String item)
// Pre: item is not already in the list
// Post: item is in the list
public void resetList()
// Post: Iteration variable has been set to listPtr
public String next()
// Pre: An unseen item remains
// The list has not been changed since the
// last call to this method
// Post: iteration variable has been updated
// The item is returned
public boolean hasNext()
// Post: Returns true if there is an unseen item;
// returns false otherwise
private Node listPtr; // external pointer
private Node currentItem // iteration variable
}
Completely implement above given class UnorderedList, and write a driver to create and print a list using data file "Names.dat".
Purchase this Solution
Solution Summary
A Java class unordered list is examined.
Purchase this Solution
Free BrainMass Quizzes
C++ Operators
This quiz tests a student's knowledge about C++ operators.
Inserting and deleting in a linked list
This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.
Word 2010: Table of Contents
Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.
Javscript Basics
Quiz on basics of javascript programming language.
Word 2010: Tables
Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.