Skip to content

Latest commit

 

History

History

reverse-words

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
  • Completed at: 2023-10-14T04:20:45.773Z

  • Completed languages: java

  • Tags: Strings, Fundamentals

  • Rank: 7 kyu

Description

Complete the function that accepts a string parameter, and reverses each word in the string. All spaces in the string should be retained.

Examples

"This is an example!" ==> "sihT si na !elpmaxe"
"double  spaces"      ==> "elbuod  secaps"