question: public static String nodeListToString ( List < ? extends Node > list ) { StringBuffer buf = new StringBuffer ( ) ; buf . append ( "{" ) ; if ( list . size ( ) > 0 ) { buf . append ( "\n  0 : [" + domToString ( list . get ( 0 ) ) + "]" ) ; for ( int i = 1 ; i < list . size ( ) ; ++ i ) { buf . append ( "\n  " + i + " : [" + domToString ( list . get ( 0 ) ) + "]" ) ; } buf . append ( "\n" ) ; } buf . append ( "}" ) ; return buf . toString ( ) ; }
target:  * PrettyPrints a List<Node>