Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE HTML><%@page import="java.util.*"%>
- <%@page import="edu.southeasttech.cis249.*"%>
- <%@page import = "edu.southeasttech.cis249.Animal" %>
- <%@page import = "edu.southeasttech.cis249.Cow" %>
- <%@page import = "edu.southeasttech.cis249.Horse" %>
- <%@page import = "edu.southeasttech.cis249.Pig" %>
- <%@page language="java" contentType="text/html; charset=ISO-8859-1"
- pageEncoding="ISO-8859-1"%>
- <html>
- <head>
- <title>Farm</title>
- <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
- </head>
- <body>
- <%
- List<Animal> animalList = new ArrayList<Animal>();
- animalList.add(new Cow());
- animalList.add(new Pig());
- animalList.add(new Horse());
- for (Animal animal : animalList) {
- out.println(animal.toString() + "<br/>");
- }
- %>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement