You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In an activity conducted in a kids school, the students are told to carefully read the sentence written on the white board and convert each word's first alphabet to capital. Note that the first letter of the last word should be small.
3
+
4
+
Input Format
5
+
6
+
Input takes a String containing words separated with spaces.
7
+
8
+
Constraints
9
+
10
+
String with no " " delimiter should display "ERROR" message.
11
+
12
+
Output Format
13
+
14
+
The string in the output should have first word capitalized for each word, except the last word.
15
+
16
+
Sample Input 0
17
+
18
+
Sia sings a song
19
+
Sample Output 0
20
+
21
+
Sia Sings A song
22
+
*/
23
+
importjava.io.*;
24
+
importjava.util.*;
25
+
26
+
publicclassSolution {
27
+
28
+
publicstaticvoidmain(String[] args) {
29
+
/* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution. */
0 commit comments