output is currect , but i can ou got it
package com.codegym.task.task08.task0823;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
/*
Going national
*/
public class Solution {
public static void main(String[] args) throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String s = reader.readLine();
String[] strArr= s.split(" ");
for (String str : strArr)
{
char[] wordChars = str.toCharArray();
wordChars [0] = Character.toUpperCase(wordChars[0]);
//String result = String.valueOf(wordChars);
System.out.print(wordChars+" ");
}
}
}