List < String > argDecls ( List < String > types , List < String > args ) { List < String > argNames = new ArrayList <> ( ) ; for ( int i = 0 ; i < types . size ( ) ; i ++ ) { argNames . add ( types . get ( i ) + " " + args . get ( i ) ) ; } return argNames ; }
Generate a formal parameter list given a list of types and names .