Czy chodzi o kropkę?
package pl.codegym.task.task08.task0823;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
/*
Ruszamy na cały kraj
*/
public class Solution {
public static void main(String[] args) throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String s = reader.readLine();
//tutaj wpisz swój kod
String sUppercase = convertFirstLetterToUppercase(s);
System.out.println(sUppercase);
}
public static String convertFirstLetterToUppercase (String string){
String[] array = string.split(" ");
for (int i = 0; i < array.length; i++){
array[i] = array[i].substring(0,1).toUpperCase() + array[i].substring(1);
}
String result = String.join(" ", array);
return result;
}
}