Groovy Collections

def beatles ["John","Paul","George","Ringo"]
for (beatle in beatles{
def greeting "Hello, "
println "$greeting" "$beatle"
}


Output of Script

 26 ms

Hello, John
Hello, Paul
Hello, George
Hello, Ringo

Comments

Popular posts from this blog

தட்டு வண்டியில் காளிக்கோயில் - சிறுகதை

பிரேமாவின் பெண் குழந்தை

தீபம் பிளக்ஸ்