How would use a get() method to access an element in an arrayList?
<p>This is my code I have so far but I don't know how to access an element in the Array myList?</p>

<p>And is the inex of an array list start at 0 or 1?
I have just found out about array lists and i need a few pointers and some help</p>

<pre><code>ArrayList&lt;String&gt; myList = new ArrayList&lt;String&gt;();

        myList.add("hello");
        myList.add("5");
        myList.add("3");
        myList.add("8");
        int totalElements = myList.size();
        System.out.println(totalElements);

private String[] myList;
    public String getList() {
        return this.myList[0];
</code></pre>
