public static int allocateNewContainer(ArrayList<Container> containers,Resource capacity,int paddingPercentage){
  containers.add(new Container(capacity,paddingPercentage));
  return containers.size();
}

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