#C14301. Camel Case Conversion
Camel Case Conversion
Camel Case Conversion
Given a whitespace‐separated string, convert it into camelCase format. In camelCase formatting, the first word is in all lowercase while each word thereafter has its first letter in uppercase and the rest in lowercase. If the input string contains no spaces, output it as is.
For example, if the input is hello world
, the output should be helloWorld
. Similarly, an input like CONVERT to CAMEL case
should yield convertToCamelCase
.
This problem tests your ability to process strings and modify the case of characters appropriately.
inputFormat
The input consists of a single line containing the string. The string may include spaces and special characters and is read from standard input.
outputFormat
Output a single line containing the camelCase converted string to standard output.## sample
hello world
helloWorld