I know there's a million ways of doing this but what is the fastest? This should include scientific notation.
NOTE: I'm not interested in converting the value to Double, i'm only interested in knowing if it's possible. i.e. private boolean isDouble(String value)
.
I think trying to convert it to a double and catching the exception would be the fastest way to check...another way I can think of, is splitting the string up by the period ('.') and then checking that each part of the split array contains only integers...but i think the first way would be faster