Search:

Type: Posts; User: helloworld922

Search: Search took 0.13 seconds.

  1. Replies
    3
    Views
    1,337

    Re: Array problems (printing strings)

    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"; //...
  2. Replies
    3
    Views
    1,337

    Re: Array problems (printing strings)

    You didn't define the toString() method of Exits. Java is using Object's default toString() method, which prints out that stuff.
Results 1 to 2 of 2