Example: Reverse a string

Description

Reverse the order of the characters in a give string of characters.

Source

Problem description from Rosetta Code

Solution

class APPLICATION create make feature make -- Demonstrate string reversal. do my_string := "Hello World!" my_string.mirror print (my_string) end my_string: STRING -- Used for reversal end

Output

!dlroW olleH

cached: 12/21/2024 12:11:17.000 PM