Reputation: 0 Apprentice
- Active Members
- Active Posts:
- 63 (0.09 per day)
- 07-March 12
- Profile Views:
- Last Active:
- Feb 01 2013 07:23 AM
- Dream Kudos:
Posts I've Made
Posted 27 Sep 2012Ty Ser. I get it.
Posted 27 Sep 2012Opps. Sorry. My mistakes. But what should be my main if i would find and count same coin in my purse?
Posted 27 Sep 2012Why don't you simply declare your
class Purse extends ArrayList<Coins>
You won't need your method add() and count() anymore
As far as you getMaximum() method is concerned, don't see why it wouldn't work
and it will be a lot simpler if Purse extended ArrayList<Coin>
How could i do that?
Posted 26 Sep 2012Ty for your time Ser. I reaallly appreciate it.
Posted 18 Sep 2012Ah, now I see, change my proposal to
coins = new ArrayList<Coin>();
private ArrayList coins; //Is normally placed above the constructors of the class, hence I missed this //to private ArrayList<Coin> coins;
due to type safety (Explained in my last edit of my last post)
i did the change. Nothing happen. That's i go back to my old codes. Ty for the time ser.
- Member Title:
- D.I.C Head
- Age Unknown
- Birthday Unknown