in java, how to check whether a string is parsable into Long without try-catch?

Posted by Sergey on Stack Overflow See other posts from Stack Overflow or by Sergey
Published on 2010-04-01T20:53:30Z Indexed on 2010/04/01 21:03 UTC
Read the original article Hit count: 317

Filed under:
|
|
|

Hello, Long.parseLong( string ) throws an error if string is not parsable into long. Is there a way to validate the string faster than using try-catch? Thanks

© Stack Overflow or respective owner

Related posts about java

Related posts about try-catch