void writeArguments ( Iterator < String > names , Writer writer ) throws IOException { while ( names . hasNext ( ) ) { String name = names . next ( ) ; writer . append ( name ) ; // argname if ( names . hasNext ( ) ) { writer . append ( COMMA ) . append ( SPACEOPTIONAL ) ; //, } } }
Write argument whit comma if necessary