【发布时间】:2021-11-03 16:52:17
【问题描述】:
我一直在尝试评估这个数组列表是否为空,但这些都没有编译:
<c:if test="${myObject.featuresList.size == 0 }">
<c:if test="${myObject.featuresList.length == 0 }">
<c:if test="${myObject.featuresList.size() == 0 }">
<c:if test="${myObject.featuresList.length() == 0 }">
<c:if test="${myObject.featuresList.empty}">
<c:if test="${myObject.featuresList.empty()}">
<c:if test="${myObject.featuresList.isEmpty}">
如何评估 ArrayList 是否为空?
【问题讨论】: