groovy-lecture/live/solutions/schleifen.groovy

9 lines
158 B
Groovy

Groovy
def str = "GGRROOOOVVYY IISSTT CCOOOOLL!!"
for(i in 0..str.length()) {
if (i % 2 == 0) {
continue
}
print str[i].toLowerCase()
}