Well, that might serve to test the algorithm, and might be appropriate for a Java programmer learning Groovy, but for Groovy beginners, that public class stuff and public static void main() stuff...
Type: Posts; User: Zaphod_b
Well, that might serve to test the algorithm, and might be appropriate for a Java programmer learning Groovy, but for Groovy beginners, that public class stuff and public static void main() stuff...
First of all:
Groovy != Java
Then, looking at your "code"
There are, by my count, five lines that will cause groovy compiler errors. (Maybe more---I got tired of counting.)
...