MagazineList - /* / MagazineList.java Author: Lewis/Loftus...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
//******************************************************************* // MagazineList.java Author: Lewis/Loftus // // Solution to Programming Project 12.2 // // Represents a collection of magazines. //******************************************************************* public class MagazineList { private MagazineNode list; //---------------------------------------------------------------- // Sets up an initially empty list of magazines. //---------------------------------------------------------------- public MagazineList() { list = null; } //---------------------------------------------------------------- // Creates a new MagazineNode object and inserts it in lexicographical // order relative to the other nodes in the linked list. If // magazine already in list, do not insert. //---------------------------------------------------------------- public void insert (Magazine mag) { MagazineNode node = new MagazineNode (mag); MagazineNode current; MagazineNode previous = null; boolean done = false;
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 05/17/2011 for the course COP 3530 taught by Professor Davis during the Spring '08 term at University of Florida.

Page1 / 3

MagazineList - /* / MagazineList.java Author: Lewis/Loftus...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online