isNumericChar() - switch comparison order

This commit is contained in:
Aditya Purohit 2023-11-28 02:56:10 +00:00
parent 4a468d163a
commit aba82d9cc4

View File

@ -90,7 +90,7 @@ class NumberConversionUtil {
* @return true if the character is a numeric digit, false otherwise.
*/
private static boolean isNumericChar(char c) {
return (c >= '0' && c <= '9');
return (c <= '9' && c >= '0');
}
/**