Use java to judge whether it is a number