2017-07-18 75 views
0

如何计算速度模板中的列表大小?我正在使用速度1.4。如何计算速度模板中列表的大小?

List<String> list = new ArrayList<String>(); 
+0

'list.size()'? https://docs.oracle.com/javase/7/docs/api/java/util/List.html如果这不是你的意思,那么你将不得不提供更多的细节。 – ADyson

+0

这就是你需要的:https://stackoverflow.com/questions/7747254/how-to-access-get-the-size-of-an-array-collection-in-velocity-templates – soorapadman

回答

-1

则为list.size()“返回与列表大小值数据类型‘整数’”