/*1.已知字符串:"this is a test of java".
-
(4) 将字符串中每个单词的第一个字母变成大写, 输出到控制台。
*/
public class Test1_4 {
public static void main(String[] args) {
String str="this is a test of java";
String[] as=str.split(" ");
for(int i=0;i<6;i++){
System.out.println(as[i]);
}}
}
写到这里不会了,帮帮忙…