String s = "abc"int i = s.length();System.out.println("s的长度为:" + i);
str.length();
变量名.length
Str.getLength () ?不知道Str.Length有没有这个属性