Here you can find the source of toString(IntStream s)
public static String toString(IntStream s)
//package com.java2s; //License from project: Open Source License import java.util.stream.Collectors; import java.util.stream.IntStream; import java.util.stream.Stream; public class Main { public static String toString(IntStream s) { return s.mapToObj(String::valueOf).collect(Collectors.joining()); }/*from w w w . j a v a2 s . com*/ public static String joining(Stream<String> stream, String delimiter) { return stream.collect(Collectors.joining(delimiter)); } }