摘要: console结果: list = [a, b, a, c, d, e]newList = [a, b, c, d, e] list = [a, b, a, c, d, e]newList = [a, b, c, d, e] list = [a, b, a, c, d, e]newList = [d 阅读全文
posted @ 2019-05-05 18:04 myseries 阅读(1231) 评论(0) 推荐(0)
摘要: 一、java.util.Arrays.asList() 的一般用法 List 是一种很有用的数据结构,如果需要将一个数组转换为 List 以便进行更丰富的操作的话,可以这么实现: String[] myArray = { "Apple", "Banana", "Orange" }; List<Str 阅读全文
posted @ 2019-05-05 16:42 myseries 阅读(3093) 评论(0) 推荐(0)