title: What is a simple way to validate if a double that contains 2 decimal places?
body: <p>I'm looking for an example in Java to check if a double amount entered by a user contains 2 decimal places e.g. 99.99 entered would return valid and 99.9 or 99.999 entered would return invalid.</p>