Join Exercism’s Groovy Track for access to 57 exercises with automatic analysis of your code and personal mentoring, all 100% free.
class Greeter {
def name
Greeter(String name) {
this.name = name
}
def greet() {
print "Hello, ${name}!"
}
}
new Greeter('World').greet()
Get better at programming through fun, rewarding coding exercises that test your understanding of concepts with Exercism.
Make sure the brackets and braces all match.
Given an age in seconds, calculate how old someone is in terms of a given planet's solar years.
For want of a horseshoe nail, a kingdom was lost, or so the saying goes. Output the full text of this proverbial rhyme.
Easy to learn if coming from Java
Integrates seamlessly with the Java ecosystem
Ideal for web applications, scripting, testing, automation, and code analysis
Lends itself to creating domain-specific languages for readable business rules
An object-oriented language with functional programming features
Has type inference and metaprogramming, along with static compilation
Every language has its own way of doing things. Groovy is no different. Our mentors will help you learn to think like a Groovy developer and how to write idiomatic code in Groovy. Once you've solved an exercise, submit it to our volunteer team, and they'll give you hints, ideas, and feedback on how to make it feel more like what you'd normally see in Groovy - they'll help you discover the things you don't know that you don't know.
Learn more about mentoringThe Groovy track on Exercism has 57 exercises to help you write better code. Discover new exercises as you progress and get engrossed in learning new concepts and improving the way you currently write.
See all Groovy exercisesThe best part, it’s 100% free for everyone.