package how2j_se;
public class TestChar {
public static void main(String args[]) {
String str = "let there be light";
String[] s = str.split(" ");
for(int i=0;i<4;i++)
{
s[i]=s[i].substring(0, 1).toUpperCase()+s[i].substring(1);
System.out.print(s[i]+' ');
}
}
}
public class TestChar {
public static void main(String args[]) {
String str = "let there be light";
String[] s = str.split(" ");
for(int i=0;i<4;i++)
{
s[i]=s[i].substring(0, 1).toUpperCase()+s[i].substring(1);
System.out.print(s[i]+' ');
}
}
}