question: public static String buildString ( Consumer < StringPrinter > printer ) { StringBuilder builder = new StringBuilder ( ) ; printer . accept ( new StringPrinter ( null ) ) ; return builder . toString ( ) ; }
target:  Easy way to create a String using a StringPrinter. 