Saturday, October 1, 2011

Chapter 3 test

Explain the purpose of class ConvertToCents
You need a class to convert into cents because then you will know how many quarters, dimes, nickels I will need. So like if you have 1.5 cents, the code will give us 1 cent and 2 quarters...(right?)

I... keep on getting this error called

java.lang.NullPointerException
at Transaction.getChange(Transaction.java:32)

Null... I feel like I heard that very very often... .

No comments:

Post a Comment