1.遍历list 判断是不是存在等于1的元素,返回boolean值 List<String> typeList =。。
boolean boo = typeList.stream().anyMatch(type -> type.equals("1"))
2.
List<String> list = list.stream().map(word -> { if(word.indexOf(internalInterfaceCallKey) >= 0){ word = word.replaceAll(internalInterfaceCallKey ,"\\\\"); } return word; }).collect(Collectors.toList());