HexLibraryHexLibrary
</> HexCodeSign inSign up
PythonJavaScriptTypeScriptCC++JavaPHPGoRustRubyBashSQLLuaPerlCOBOLPascalDelphiFortranDartSwiftC#JuliaGroovyRElixirHaskellKotlinScalaClassic ASPClipperMS-DOS
LESSONS
Introduction to GroovyVariablesData TypesOperatorsStringsListsConditions (if / else)Loops (for / while)Functions
REFERENCE
📖 Overview
🖥️ Output
📦 Variables & Types
🔢 Numbers & Math
✍️ String
📚 List & Map
🔀 Condition & Loop
🧩 Function
Groovy›REFERENCE

Groovy — Command Reference

The most used Groovy commands — each with an explanation, working example, and real-world usage. The language of Gradle build scripts and Jenkins pipelines.

7 categories · 16 commands

🖥️

Output

Printing to the screen and GString interpolation.

printlnString interpolation ( $ )
2 commands →
📦

Variables & Types

def and type conversion.

defas Integer / toInteger()
2 commands →
🔢

Numbers & Math

Operators and the Math class.

Math operatorsMath.sqrt() / Math.abs()
2 commands →
✍️

String

Length, casing, searching, replacing, and splitting.

.length() / .toUpperCase().contains() / .replace().split()
3 commands →
📚

List & Map

List and Map.

List (items)Map (dictionary)
2 commands →
🔀

Condition & Loop

if/else, for, and while.

if / elsefor / eachwhile
3 commands →
🧩

Function

Functions and closures with def.

def (function)Closure ( { -> } )
2 commands →
HexLibraryHexLibrary

Learn programming more clearly. Every command is explained line by line with colors, reinforced with runnable exercises, test your code instantly — all in one place, free.

Learn

  • Home
  • Languages & Lessons
  • HexCode

Company

  • About
  • Contact

Legal

  • Privacy Policy
  • Terms of Use

Other Projects

  • HexToolz
  • Free Service Manuals
© 2026 HexLibrary · The clearest way to learn code