java中length和length()的区别

length()方法是求字符串对象中字符的个数;
length是求数组中元素的个数;

posted @ 2021-10-28 19:05  没睡好  阅读(165)  评论(0)    收藏  举报