0Pricing
Groovy & Gradle: JVM Automation and Build Engineering · Lesson

Groovy Strings & GStrings

Master Groovy string handling: single, double and triple quotes, GString interpolation, and multiline text for scripting tasks.

Strings in Groovy

Groovy gives you several string literals, each for a job. Picking the right one keeps scripts clean and dodges escaping headaches.

Single-Quoted Strings

Single quotes make a plain String with no interpolation — what you type is exactly what you get.

def s = 'Hello World'
println s

All lessons in this course

  1. Introduction to Groovy & JVM
  2. Groovy Syntax & Basic Types
  3. Groovy Scripts & GShell
  4. Groovy Strings & GStrings
← Back to Groovy & Gradle: JVM Automation and Build Engineering