What is wrong here
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();
//write your code here
String[] words = s.split(" ");
for (int i = 0; i < words.length; i++) {
words[i] = Character.toUpperCase(words[i].charAt(0)) + words[i].substring(1);
}
for (int i = 0; i < words.length; i++) {
System.out.print(words[i] + " ");
}
reader.close();
}
}