question: public static int allocateNewContainer ( ArrayList < Container > containers , Resource capacity , int paddingPercentage ) { containers . add ( new Container ( capacity , paddingPercentage ) ) ; return containers . size ( ) ; }
target:  Allocate a new container of a given capacity