Current Forum: Homework 6 Part 1 |
Date: Wed Dec 5 2001 12:49 am |
Author: Kohl, Charles M. <ckohl@andrew.cmu.edu> |
Subject: toString() in Space |
|
|
for some reason, we cannot get Spaces to print out correctly. we ran the following test (and several others), and each time the string printed was "EMPTY". any idea what is going on here?
Space first = new Space(0); Space second = new Space(1); Space third = new Space(2);
System.out.println(((Space)first).toString()); System.out.println(((Space)second).toString()); System.out.println(((Space)third).toString());
the problem occurs in the call to b.getActivePlayer() |
|