Groovy library reference
Learn everyday Groovy library methods through shopping lists, ticket bookings, delivery dates, and other familiar tasks.
Math and money
Calculate a change in temperature, pack boxes, or round a bill.
61 guidesStrings and input
Clean up names, compare codes, and read quantities from a form.
58 guidesFiles and paths
Build a receipt path, save a note, or read a shopping list.
14 guidesErrors and exceptions
Handle invalid entries, missing records, and interrupted work. Follow each failure from the input that triggers it to a response the user can act on.
19 guidesLists and maps
Work with ordered lists and key-value lookups. Follow a pickup roster, change a booking, or combine stock counts from two deliveries.
27 guidesDates and time
Calculate a delivery date or count nights between bookings.
3 guidesMore library topics
Explore additional libraries and worked examples for this language.
2 guidesOfficial documentation
Groovy Development Kit reference
Packages with Groovy extensions
- groovy.lang
- groovy.sql
- groovy.util
- java.awt
- java.io
- java.lang
- java.lang.reflect
- java.math
- java.net
- java.nio.file
- java.sql
- java.time
- java.time.chrono
- java.time.temporal
- java.util
- java.util.concurrent
- java.util.concurrent.atomic
- java.util.regex
- java.util.stream
- javax.script
- javax.swing
- javax.swing.table
- javax.swing.tree
- org.codehaus.groovy.runtime
- org.w3c.dom
- primitives