List<String> names = new ArrayList<>(Arrays.asList("张三", "李四", "王五"));
List<Integer> ages = new ArrayList<>(Arrays.asList(24, 25, 27));
//方式一:java8的IntSream
Stream<String> stream = IntStream
.range(0, Math.min(names.size(), ages.size()))
.mapToObj(i -> names.get(i) + ":" + ages.get(i));
//遍历输出
stream.forEach(System.out::println);
09-03