Groovy hello world (#26908)
* Groovy hello world * Added code formatting
This commit is contained in:
@ -4,6 +4,17 @@ title: Groovy
|
|||||||
## 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.
|
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:
|
#### More Information:
|
||||||
- [Groovy's Official Website](http://groovy-lang.org)
|
- [Groovy's Official Website](http://groovy-lang.org)
|
||||||
- [Wikipedia: Apache Groovy](https://en.wikipedia.org/wiki/Apache_Groovy)
|
- [Wikipedia: Apache Groovy](https://en.wikipedia.org/wiki/Apache_Groovy)
|
||||||
|
Reference in New Issue
Block a user