sorry I'm new to java so hopefully my terminology is fine. I'm trying to make a hangman game, in my constructor I have
`System.out.println("\f==========|");
System.out.println("| | |");
System.out.println("| |");
System.out.println("| |");
System.out.println("| |");
System.out.println("| | __");
System.out.println("| |___|");`
but when it prints out the object in my main class, it prints out this:
I don't want to have the memory address, just the gallows. In my main class, I have for this
public void gallows ()
{
Gallows gallow = new Gallows(wrongGuesses);
System.out.println(gallow);
}
and then in a different method that prints I have
gallows();
Any advice?