Groovy - Logical Branching and Looping

//Groovy supports the usual if - else syntax
def x = 3

if(x==1) {
println "One"
} else if(x==2) {
println "Two"
} else {
println "X greater than Two"
}

Comments

Popular posts from this blog

Array and Object Creation - JavaScript

Groovy Tuples

அவன் ஏன் கூலியானான்?