public class Test4_7 {
public Test4_7() {
}
public static void main(String
[]args
)
{
String s1
="My name is Tom,I caome form China";
for(int i
=0;i
<s1
.length();i
++)
{
char c
=s1
.charAt(i
);
if(c
>'A'&&c
<'Z')
{
System
.out
.print(c
+" ");
}
}
}
}
转载请注明原文地址:https://tech.qufami.com/read-10138.html