Move - private int to; public Move(int fromTower, int...

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

View Full Document Right Arrow Icon
//******************************************************************** // Move.java Author: Lewis/Loftus // // Solution to Programming Project 11.11 // // Encapsulates a disk move //********************************************************************* public class Move { private int from;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: private int to; public Move(int fromTower, int toTower) { from = fromTower; to = toTower; } public String toString() { return "Move from tower " + from + " to tower " + to; } public int getFrom() { return from; } public int getTo() { return to; } }...
View Full 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.

Ask a homework question - tutors are online