From 260426f3e28c4668f529a2b2a4b3d7418f102c4b Mon Sep 17 00:00:00 2001 From: John Folder Date: Wed, 13 Feb 2019 20:57:30 +1100 Subject: [PATCH] Groovy hello world (#26908) * Groovy hello world * Added code formatting --- guide/english/groovy/index.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/guide/english/groovy/index.md b/guide/english/groovy/index.md index 13ad11515e..49a3bba05f 100644 --- a/guide/english/groovy/index.md +++ b/guide/english/groovy/index.md @@ -4,6 +4,17 @@ title: Groovy ## Groovy Apache Groovy or Groovy is a powerful and dynamic language with static compilation and typing capabilities for the Java platform and was designed to increase productivity with its concise and familiar syntax. It integrates with any Java program with ease. +### Hello World +Try the traditional "Hello World" example below: +```groovy +class helloWorld { + static void main(String[] args) { + // Use a simple println statement to print hello world to the console + println('Hello World'); + } +} +``` + #### More Information: - [Groovy's Official Website](http://groovy-lang.org) - [Wikipedia: Apache Groovy](https://en.wikipedia.org/wiki/Apache_Groovy)