Following are some snippets from a jsp page:
<%! ArrayList songList = new ArrayList(); %>
<%
songList = StoreSongLink.linkLis
for (ArrayList list : songList){} // Error is here
And you have define a reference of ArrayList of Object type and declared a String type ArrayList instance which should be ArrayList
or ArrayList
(supports only java 7)
So the Corrected code could be like -
<%! List songList = new ArrayList(); %>
...
for (String list : songList){
}