Data types in Groovy- To define data types in Groovy we can either use the keyword int ,double etc before each variable or simply use the keyword def and give the value and Groovy will figure out which data type it is based on the value given.
def x = 100;
def y = "Groovy";
def z = 100.10;
int x = 100;
if(x==100){
log.info("x is equal to 100")
}
for(int a=0;a<10;a++){
log.info("The value is "+ a)
}