<> String类型判断为空有三种:
Sting number;
1. StringUtils.isBlank(number);
2. numberisEmpty()
3. "".equal(number) || null == number
<> int类型判断为空:
int number;
number == null;
<> list判断为空:
list<?> list;
list.isisEmpty();
<> 对象为空判断用 null
时间: 2024-10-20 11:41:47