Im not sure if I need to post more code then this to get help, so if I do let me know
public boolean processGuess(int[] guess)
{
for(int i = 0; i < boardSize; i ++)
guessHistory += (guess)+ " ";
String results = getGuessResults(guess);
guessHistory += " " + results + "\n";
return false; public String toString()
{
String boardString = "GUESS THE " + MysteryNumbersGame.numCnt + " NUMBERS"
+ "\nX X X X X \n\n X Correct number in the correct place."
+ "\n# Correct number in the wrong place.\n\nYour Guesses\n"
+ guessHistory;
return boardString;Both of these methods are in the same class, and processGuess is called everytime the player guesses another set of numbers. Essentially its suppose to just put each guess and its results on a new line. But for some reason, when the toString is called (from another class), the only thing it registers from guessHistory is the nextline command and doesnt show the guess or the results...just skips a line.
Any help would be appriciated
Edited by: ollie88r on Apr 29, 2008 9:12 PM