Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Write a function that reverses a given string.
- void main()
- {
- String abc='hitesh';
- List<String> def=abc.split('').toList();
- List<String> name=def.reversed.toList();
- print(name.join());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement