how to compare the string which is passed as a parameter
the following method is not working.
String str = \"saveMe\" compareString(str) def
The shortest way (will print "not same" because String comparison is case sensitive):
def compareString = { it == "india" ? "same" : "not same" } compareString("India")