Adrian Martinez wrote:cc setdollars (dollars);
cc setExchangrate (exchangerate)'
Programming requires you to be precise. The compiler is unforgiving. You should get in the habit of being VERY careful what you type.
Neither of the above lines is valid java. The second isn't even what you have in your code. You have this:
not this
the first says "call the setExchangerate method on the object referred to by the cc variable, and pass it the value stored in the exchange rate variable". The second will throw a compiler error.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors