Hey, so I am wondering what would be the easiest way to check if a double "looks" a certain way. Like this:
Let's say I have some input and I want to check if the input has the same format that I want it to be. Here's what I want to achieve;
if (inputdoublevalue == X.XXXX )
So basically if the input would look like this: 5.1234 it would proceed with the if statement, otherwise if the double would be, let's say "05.12" it would not. I don't want it to convert my double either, just check if it has the format I want it to have.
I suspect it may have something to do with DecimalFormat maybe? How can I achieve this?! Thanks!