Hi,
maybe someone smarter than me could tell me. What i have done wrong here.
Best regards
Steffen
P.S. Sorry for my english it's not my native language.
package de.codegym.task.task08.task0823;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
/*
Landesweite Restaurantkette
*/
public class Solution {
public static void main(String[] args) throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String s = reader.readLine();
//schreib hier deinen Code
String[] x = s.split("\\s+");//new String[s.length()];
//x = s.split("\\s+");
for(int i = 0; i < x.length; i++){
if(Debug.debug){
System.out.println(x[i]);
}
x[i] = x[i].replace(x[i].charAt(0),Character.toUpperCase(x[i].charAt(0)));
if(Debug.debug){
System.out.println(x[i]);
}
}
for(String y : x){
y = y + " ";
System.out.print(y);
}
}
public static class Debug{
public static boolean debug = false;
}
}