标签:字符 sys pack demo for char str ack string
package Demo;
public class Demo4 {
public static void main(String[] args) {
String str = "helloworld";
System.out.println("字符串的长度为:"+str.length());
for(int i=0;i<str.length();i++){
System.out.print(str.charAt(i)+"、");
}
}
}
标签:字符 sys pack demo for char str ack string
原文地址:http://www.cnblogs.com/mengliang/p/6833294.html