Re: I have a problem for my return in the output



dbstyless@xxxxxxxxxxx wrote:

My program doesnt give me the output i expect it to give back. for the
total value of the coins it doesnt give me the total.
it just give a Zero as total value.
i would like you to help me solve it . Thanks in advance.


public class Coins {

I think you need a class Coin not Coins. The Purse class is who keeps
track of its contents, IMO.


--
Sabine Dinis Blochberger

Op3racional
www.op3racional.eu
.



Relevant Pages

  • Re: I keep getting 2005 GDs at my bank!
    ... they had less than zero interest in pushing the sales of the USA $1 barrell and even less than zero interest in making it with a slotted top. ... I'm wondering what the market for belt changers would be like in places such as the Euro countries as well as in Canada and other foreign countries. ... Recall that Canada has widely used C$2 and C$1 coins, with the C$1 coins being identical to USA$1 coins in size/thickness. ... any patents on Johnson changers expired decades ago so anyone can make them. ...
    (rec.collecting.coins)
  • Re: Peculiarities with lindex and llength
    ... no coins in your pocket, that is, that the size of the set of coins in ... your pocket is zero, but you can't "count" the coins in your pocket ... If that subset of the naturals happens to be the empty set, then the set being counted has zero elements. ...
    (comp.lang.tcl)
  • Re: Seated Liberty
    ... My name's not Joey and I know zero about these coins but it's probably a ... Chinese made fake, but I sit to be corrected, no not post any more pics here ...
    (rec.collecting.coins)
  • Re: Peculiarities with lindex and llength
    ... no coins in your pocket, that is, that the size of the set of coins in ... your pocket is zero, but you can't "count" the coins in your pocket ... expensive if we had evolved from starfish. ...
    (comp.lang.tcl)
  • Re: Peculiarities with lindex and llength
    ... no coins in your pocket, that is, that the size of the set of coins in ... your pocket is zero, but you can't "count" the coins in your pocket ... just apply the axiom of choice! ...
    (comp.lang.tcl)