Following are some snippets from a jsp page:
<%! ArrayList songList = new ArrayList(); %>
<%
songList = StoreSongLink.linkLis
Your iteration is wrong in
for (ArrayList<String> list : songList){}
songList
contains the list of String
elements not the list of ArrayList<String>
so you need to iterate this way for (Object song: songList){}
or
ArrayList<String> songList = new ArrayList<String>();
for (String song: songList){}