文件名称:java中字符串运算
文件大小:2KB
文件格式:JAVA
更新时间:2012-07-03 03:02:00
java字符串的运算
g.drawString("字符串s1的长度为:"+n1,5,70);
g.drawString("字符串s2的前缀是否为we? "+s2.startsWith("we"),5,90);
String s3[]={"door","apple","Applet","girl","boy"};
g.drawString("s3=door,apple,Applet,girl,boy",5,110);
for(int i=0;i