public class Exits
{
// ... I left out the rest of the Exits class, but you'd obviously want to keep that
public String toString()
{
return "this is an exit object"; //...
Type: Posts; User: helloworld922
public class Exits
{
// ... I left out the rest of the Exits class, but you'd obviously want to keep that
public String toString()
{
return "this is an exit object"; //...
You didn't define the toString() method of Exits. Java is using Object's default toString() method, which prints out that stuff.