Code Maven

Search for '{{search_term}}'

Welcome to the Code Maven!

Programming Exercises for any language.


Groovy: Undeclared variable - runtime exception - groovy.lang.MissingPropertyException

Unlike the "strongly typed" languges, Groovy does not check the existance of all the variables at compile time. This can lead to run-time exceptions such as groovy.lang.MissingPropertyException


Groovy: Undeclared variable - runtime exception - groovy.lang.MissingPropertyException


Groovy: read from console (STDIN, keyboard)

Reading from the Standard Input (aka. STDIN) which is by default connected to the keyboard is somewhere between Java and the dynamic languages in lightness.


Groovy: read from console (STDIN, keyboard)