public static PrettyPrint indentWithSpaces ( int number ) { if ( number < 0 ) { throw new IllegalArgumentException ( "number is negative" ) ; } char [ ] chars = new char [ number ] ; Arrays . fill ( chars , ' ' ) ; return new PrettyPrint ( chars ) ; }
Print every value on a separate line . Use the given number of spaces for indentation .