home | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Groovy example source code file (zoo.groovy)

This example Groovy source code file (zoo.groovy) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Groovy tags/keywords

animal, animal, example, example, here, here, return, servlet, servlet, there, visiting, where

The Groovy zoo.groovy source code

println """
        <title>Groovy Servlet Example - Visiting the zoo
    <a href="../">Return

Animal shark = new zoo.fish.Shark()
Animal trout = new zoo.fish.Trout()
Animal forelle = new zoo.HommingbergerGepardenforelle()

println """
${shark.saySomething("\"Where is the trout?\"")} <p>Trout
${trout.saySomething("Here is the trout!")} <p>Forelle
${forelle.saySomething("\"<a href=\"http://www.hommingberger-forelle.de\">There is no spoon.\"")} <!-- http://en.wikipedia.org/wiki/Nigritude_ultramarine --> """ println """ </body> </html> """

Other Groovy examples (source code examples)

Here is a short list of links related to this Groovy zoo.groovy source code file:

new blog posts


Copyright 1998-2016 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.