reverse static method
reverse
Implementation
static String reverse(String text) {
if (isEmpty(text)) return '';
StringBuffer sb = StringBuffer();
for (int i = text.length - 1; i >= 0; i--) {
sb.writeCharCode(text.codeUnitAt(i));
}
return sb.toString();
}