return list called from one class into another
<p>i am new to java, and would like some advice on the following</p>

<p>i have two files:</p>

<p>SongsList.java and SongsMenu.java</p>

<p>SongsMenu.java (http://pastie.org/private/cm0zpembkqnfjif0pgdadq) lines 38 / 39</p>

<pre><code>import java.util.Scanner;
import java.util.InputMismatchException;

public class SongsMenu {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);

...

switch (listMenuItem) {
case 1:
System.out.println("Album");
SongsList sl = new SongsList();
System.out.println(sl);
    break;
</code></pre>

<p>and SongsList.java (http://pastie.org/private/qljonhfdronvbq4ahcqgmq)</p>

<pre><code>public class SongsList {

public static void main(String args[]) throws Exception {
    // reads the file and returns a list of my Music.txt file
    ...
</code></pre>

<p>when i run the SongsList, i get:</p>

<pre><code> $java SongsList
 Track 58                   Reggae  1637918 81          58  59      18/02/2010 21:02    28/01/2012 14:07    160 44100       MPEG audio file                             khinester:Users:khinester:Music:iTunes:iTunes Music:Unknown Artist:Unknown Album:58 Track 58.mp3
 Track 59                   Reggae  4239191 211         59  59      18/02/2010 21:02    28/01/2012 14:07    160 44100       MPEG audio file                             khinester:Users:khinester:Music:iTunes:iTunes Music:Unknown Artist:Unknown Album:59 Track 59.mp3

 ...
</code></pre>

<p>but when i run the SongsMenu</p>

<pre><code>$java SongsMenu
  1) Album
  ...

1
Album
SongsList@50ef5502
</code></pre>

<p>How do i return the list, instead of 'SongsList@50ef5502' i would like to ultimately be able to list this in order of Album, Name  and make searches.</p>

<p>Any advice much appreciated. </p>
