Tuesday, 17 September 2013

How to call method from driver?

How to call method from driver?

How would I call this method from my driver. Ive tried a couple different
ways.. but I cannot seem to get it.
public CoinJar(Coin[] coins)
{
//...initialize all variables, etc
for (int i = 0; i <10; i++)
{
coins[i] = new Coin(Coin.getDenomination(), Coin.getYear());
}
}

No comments:

Post a Comment