统计java中字符串,数组,集合大小(长度)

字符串长度用String.length();

数组用String[].length;

集合用collection.size();

原文地址:https://www.cnblogs.com/chenzeyong/p/6186033.html