摘要: List和Map中都存在判断存储的对象是否存在的方法。 List接口继承于Collection接口。Map是HashMap、TreeMap、LinkedHashMap的顶级接口。 在List、Set中判断已存储的是否存在的方式是contains()方法。 List的常用的List的实现类ArrayL 阅读全文
posted @ 2021-03-17 21:10 干瘪咸鱼 阅读(346) 评论(0) 推荐(0) 编辑