<% String[] animals = { "lions", "tigers", "bears", "lizards", "zebras", "kangaroos", "elephants", "cows", "monkeys", "anteaters" }; %> JSP Zoo

JSP Zoo

Here are the animals we visited at the zoo:

<% for(int i = 0; i < animals.length; i++){ %>

<%= i+1 %>: <%= animals[i] %>

<% } %>