O'Reilly logo

Getting Started with IBM WebSphere sMash by Brett King, Karl Bishop, Ron Lynn

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix A. Get Started with Groovy

Groovy is an object-oriented, dynamically typed scripting language for Java developers. Java developers should feel comfortable using Groovy because it perpetuates Java’s syntax and semantics. Groovy also provides a more succinct syntax that results in code much smaller than comparable Java code. A developer can mix Java and Groovy style syntax, which allows Java developers to ease themselves into using Groovy style syntax. This chapter introduces you to the Groovy syntax to facilitate your understanding of Groovy code snippets throughout the text of this book.

Before we dive into syntax, let’s start with a simple Java class that prints a message to stdout (standard out) and then rewrites it in a Groovy way ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required