Invoking a method several times can easily be done in Java in a loop.But what if we have several methods that need to be executed severaltimes? Since Java does not feature pointers to functions, we cannot passfunctions around, and cannot create a generic method that takes apointer to a method and executes it. This is where Groovy shines. Suppose we want to check on the status of some external system or work.We want to check the status every half a second for a maximum of tentimes in total. //...