groovy-lecture/live/solutions/schleifen.groovy

8 lines
152 B
Groovy

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