阅读背景:

如何检查字符串代表的数字和数字类型?

来源:互联网 

How can I check whether a string represents a long, a double, or just a regular string? I need to do this because this value needs to be indexed in a database according to its type. Currently I'm doing this by trying to parse the string and checking for exceptions but since the code is called very frequently, I'm wondering if there's a more efficient way to do it. My code currently looks like this:How can I check whether a string represents a l




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: