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);
}

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 .
