I have drawn a problem with the application that I am developing, it gives me a cast exception. It’s funny that he says that he can’t abandon “entities”. Movi cannot be cast to entities. Movy?! Movies is an ArrayList.
try {
movies = getMovies();
} catch (Exception e) {
e.printStackTrace(System.out);
} finally {
try {
for (Movie movie : movies) {
output.append(" <tr>\n");
output.append(" <td>" + movie.getId() + "</td>");
output.append(" </tr>\n");
}
} catch (Exception e) {
e.printStackTrace(System.out);
}
}
source
share