- 1. Home
- 2. Groovy
- 2.1. Hello World in Groovy
- 2.2. Groovy: read from console (STDIN, keyboard)
- 2.3. Groovy value types
- 2.4. Groovy: Undeclared variable - runtime exception - groovy.lang.MissingPropertyException
- 2.5. Groovy: Number guessing game
- 2.6. Groovy: Determine type of an object
- 2.7. Groovy: Lists
- 2.8. Groovy: sum of numbers
- 2.9. Groovy: color selector
- 2.10. Groovy: read CSV file
- 2.11. Count digits in Groovy
- 2.12. Groovy: reading and writing files - appending content
- 2.13. Groovy: listing the content of a directory, traversing a directory tree
- 2.14. Groovy - Regular Expressions - regexes
- 2.15. Groovy map (dictionary, hash, associative array)
- 2.16. Groovy: JSON - reading and writing
- 2.17. Groovy: Date, Time, Timezone
- 2.18. Groovy: import and use functions from another file
- 2.19. Groovy: Random numbers, random selection from list of values
- 2.20. Groovy: Closures
- 2.21. Groovy: remove spaces from a string
- 2.22. Groovy: temporary file with autodelete
- 2.23. Groovy: relative path
- 2.24. Return multiple values from a function
- 2.25. Groovy string length
- 2.26. Groovy: substring
- 2.27. Groovy: for loop - break - continue
- 2.28. Groovy code reuse
- 2.29. Groovy functions
- 2.30. Groovy: evaluate code in another file
- 2.31. Groovy classes
- 2.32. Groovy function overloading
- 2.33. Groovy variable scope
- 2.34. Groovy recursive functions
- 2.35. Groovy command line arguments (args)
- 2.36. Groovy exit - System.exit - early exit from Groovy script
- 2.37. Groovy file and directory attributes
- 2.38. Groovy: join elements of an array
- 2.39. Groovy pop push
- 2.40. Groovy: Formatted printing with printf and sprintf
- 2.41. Groovy System properties
- 2.42. Groovy path to current executable script
- 2.43. Groovy Exception handling (try, catch, Exception)
- 2.44. Groovy throw (raise) exception
- 2.45. Groovy casting
- 2.46. Printing Unicode characters from Groovy
- 2.47. Groovy: import standard libraries
- 2.48. Groovy iterate over map keys
- 2.49. Groovy get the list of keys of a map as an ArrayList