好多判断, isNumber in Java messy