摘要: 遍历Java集合(Arraylist,HashSet...)的元素时,可以采用Iterator迭代器来操作 Iterator接口有三个函数,分别是hasNext(),next(),remove()。 今天浅谈remove函数的作用 官方解释为: Removes from the underlying 阅读全文
posted @ 2021-10-09 10:55 Chen洋 阅读(3939) 评论(0) 推荐(0)
摘要: isNotEmpty(str)等价于 str != null && str.length > 0 isNotBlank(str) 等价于 str != null && str.length > 0 && str.trim().length > 0 同理 isEmpty 等价于 str == null 阅读全文
posted @ 2021-10-09 10:37 Chen洋 阅读(67) 评论(0) 推荐(0)