public class DiffyChain

public class DiffyChain - { currentDiffy =...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
public class DiffyChain { private Diffy currentDiffy; private int diffyCount; public DiffyChain (int a, int b, int c, int d) { currentDiffy = new Diffy(a,b,c,d); diffyCount = 0 ; public Diffy advanceTheChain ( )
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: { currentDiffy = currentDiffy.next( ) ; diffyCount++; return currentDiffy; } public int getDiffyCount ( ) { return diffyCount; } Public Diffy getCurrentDiffy ( ) { return currentDiffy; } }...
View Full Document

This note was uploaded on 03/30/2009 for the course CMPSCI 112 taught by Professor H during the Spring '09 term at UMass (Amherst).

Ask a homework question - tutors are online