this is partly homework I've been given some code to use and I am trying to figure out one part of it...

```
   public PhoneAccount[] getAllAccounts() {
      return tm.values().toArray(new PhoneAccount[tm.size()]);
   }

```

I am trying to find out how to read this in my main method, I've created the instance of the class this is. Which I named "am"

What exactly do I need to do to make it list the contents of the array? 

```
am.getAllAccounts() 

```

is what it is, just not sure how do I make it print its contents?