This content has been marked as final. Show 4 replies
Hm, if you are sure, the incoming values are eitherGood catch Stefan.
numbers or Strings, the parseInt approach might help
(although, it will throw exceptions on long numbers
that exceed Integer.MAX_INT). Otherwise, better use a
Pattern instance and match for digits. Might also
pick out illegal names.
@OP: for a pattern approach, have a look at this link: