/*先应该梳理一下你的需求,你的任务是从第二段英文开始的,即:你的任务是创建一个函数(即方法),这个函数的参数有:被运送的money堆,money堆的大小,宽度和高度;返回值嘛,你就返回有多少money就行了。*/
import java.util.ArrayList;
import java.util.List;
class MoneyStack
{
//TODO:根据自己的需求定义成员函数和变量,你的需求没有给出。
}
//theMoneyStackSize这个参数可以不要,是多余的
public int calculateMoney(ListtheMoneyList, int theMoneyStackSize, int theWidth, int theHeight)
{
int aTotalMoneyValue;
// TODO:计算过程,你所给的需求没说怎么计算。
return aTotalMoneyValue;
}