How can I call my data in an array on the console menu?
<p>I have a program where data from a CSV file gets put into an <code>ArrayList</code>. On the user menu, the user will first press 1 to do just that, i.e., call the data from the CSV file and put it into the <code>ArrayList</code>, and then press 2 for the console to show the user what data is stored.</p>

<p>How can I execute option 2?</p>

<p>This is my menu:</p>

<pre><code>public class Main {
    public static void main(String args[]){
        SimpleCarFactory factory = SimpleCarFactory.getInstance();
        CarStore store = new CarStore(factory);
        Car     Vauxhall = store.createCar("Vaux");
        Car Volvo = store.createCar("Vol");

        Scanner input = new Scanner(System.in);        
        int choice;
        do
        {   
            userInput();
            choice = input.nextInt();
            switch(choice)                  
            {
            case 1:      
                vauxhall.getData();
                System.out.println("Data for " + vauxhall.getName() + " car loaded successfully");
                volvo.getData();
                System.out.println("Data for " + vol.getName()  + " car loaded successfully");
                break;                      
            case 2:                     
                System.out.println(vauxhall.getData());
                System.out.println(vauxhall.getData());
            case 0:
                System.out.println("BYE");
                System.exit(0); 
                break;                      
            }
            System.out.println();                   
        }while(choice !=0);
        input.close();
    }
}
</code></pre>

<p>This is my Car class:</p>

<pre><code>public class Car {
    static String name;
    static FileParser fileParser = null;

    ArrayList data = new ArrayList();

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public ArrayList getData() {
        return data;
    }

    public void setData(ArrayList data) {
        this.data = data;
    }

    public Card(String name) {
        super();
        this.name = name;
    }
}
</code></pre>

<p>This is one of my sub-classes of Car:</p>

<pre><code>public class Vauxhall extends Car {
    public Vauxhall(String name) {
        super(name);
        // TODO Auto-generated constructor stub
    }
    static FileParser fileParser = null;

    public ArrayList getData() {
        fileParser  = new FileParser();
        ArrayList&lt;String&gt; data =  fileParser.parseFile("filepath.csv");
        List&lt;Vauxhall&gt; VauxhallList = fileParser.populateData(data);

        return data;
    }
}
</code></pre>