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)+"、"); } }}