Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/nbkhope/groovy-notes
- Owner: nbkhope
- License: mit
- Created: 2016-12-13T00:30:05.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-12-25T19:55:37.000Z (about 5 years ago)
- Last Synced: 2024-10-23T10:37:37.290Z (3 months ago)
- Topics: groovy
- Language: Groovy
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```