I'm trying to represent money with a datatype in Java. There's a condition though: the money will always be a whole number (eg. $500, $10000000). The choices I thought of are:
Which one should I use?
EDIT: This is not a duplicate and is different in that I need to use only whole numbers for money, which brings the question of precision and suitability!