reverse

Run Settings
LanguageGroovy
Language Version
Run Command
void reverse(str) { def rstr = '' def j = 0 (str.length()..<0).each { rstr += str[it - 1] } println rstr } reverse("KING") println 'KING'.reverse()
Editor Settings
Theme
Key bindings
Full width
Lines