changed to arraylist, and made the adapter and the list public