i wanted know if there mechanism in java api check string object , able tell if of characters not digits.
know can use integer (or long, short, etc...) , pass string constructor. however, throw numberformatexception if string not represent number.
looking gentler way of checking, returns boolean result instead of throwing exception.
of course, re-invent wheel , code own solution this, wanted check if there in api this.
the character class provide need.
Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk Java, detect if String is not a digit
Ubuntu
Comments
Post a Comment