Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nbkhope/groovy-notes

Notes about the Apache Groovy programming language.
https://github.com/nbkhope/groovy-notes

groovy

Last synced: about 1 month ago
JSON representation

Notes about the Apache Groovy programming language.

Awesome Lists containing this project

README

        

# Groovy Notes

Notes about the Apache Groovy programming language.

## Installation

### MacOS

You need Java in order to use Groovy. Verify that you already have it using:

```sh
# This command
/usr/libexec/java_home -V

# or this command
java -version
```

Install Groovy using Homebrew:

```sh
brew install groovy
```

Verify the installation:

```sh
groovy -v
```

## Files

### [One](groovyNotesOne.groovy)

Variable Definition and Basic Math Operators

### [Two](groovyNotesTwo.groovy)

Strings and Optionality

### [Three](groovyNotesThree.groovy)

User Input and (Array) Lists

### [Four](groovyNotesFour.groovy)

Map Literals (aka Associative Arrays or Hash) and Ranges

### [Five](groovyNotesFive.groovy)

Switch Statement with Ranges and For-In Loops

### [Six](groovyNotesSix.groovy)

Functions/Methods and Closures (each, find, findAll, any, every, collect)

### [Random](random.md)

Random Notes

## How to Run

Just say groovy followed by the filename. For example:

```sh
groovy groovyNotesOne.groovy
```