class Example { static void main(String[] args) { def employee = ["Ken" : 21, "John" : 25, "Sally" : 22]; for(emp in employee) { println(emp); } } }
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more