to make micro-transactions between friends. The thing is I'm wondering how to persist the transactions. The first issue I've come accross is which type do you use in Java for currencies?. In C# I used Decimal, but Java doesn't have one like it. The second one is, should the user emails involved in the transaction be encrypted as a best practice, or is it irrelevant?
The equivalent to decimal in Java is BigDecimal from java.math library, check it
Обсуждают сегодня