类型转换技巧

1. 转String:         Interger :  Interger.parseInt(str)

2. 转Interger:   String :  str + " "

3. 转Stream流:  

       1. Collection<> values = map.values();
       Stream<> stream = values.stream();
    2. Collection
<map.Entry<T, R>> entries = map.entrySet();      Stream<map.Entry<T, R>> stream = entries.stream();     3. Set<T> keySet = map.keySet();     Stream<T> stream = keySet.stream();
    4. stream.of() 数组
    5. list.stream 集合

原文地址:https://www.cnblogs.com/cuteb/p/13522681.html