Capitalize in Every LanguagePublished on 31 March 2019 (Updated: 31 March 2019)
In this article, we’ll tackle the Capitalize program, its requirements, and how to test it.
This simple program picks a string and return the first letter of it in uppercase.
For this sample program, each solution should return the string with the first letter in uppercase. In other words, do not change anything else about the input string.
string -> String react -> React java -> Java car -> Car a long string term -> A long string term
In addition, there should be some error handling for situations where the user doesn’t input a string.
Feel free to use the following table when testing capitalize programs
|No input||“Usage: provide a string”|
|Long String||“hello world”||“Hello world”|
|Mixed Casing||“heLLo World”||“HeLLo World”|
Currently, there are no articles. If you’d like to begin contributing, head over to the repo to get started.