boolean isInteger() Method

I am trying to parse a text line.

I would like to pick up the substring after the first period provided the last three characters before the period form an integer. Is there a method to check for integer format or property NaN in a given string. I have looked through Integer, Number and Math Classes....

Thanks in advance.

Qamar A.

[358 byte] By [QamarAhmada] at [2007-10-3 2:51:26]
# 1
Call Integer.parseInt and check for the NumberFormatException to determine if a String can be parsed into an int. Not sure what you mean by the NaN property as it relates to a String thoughGood LuckLee
tsitha at 2007-7-14 20:40:18 > top of Java-index,Java Essentials,New To Java...
# 2

> I am trying to parse a text line.

>

> I would like to pick up the substring after the first

> period provided the last three characters before the

> period form an integer. Is there a method to check

> for integer format or property NaN in a given string.

> I have looked through Integer, Number and Math

> Classes....

>

> Thanks in advance.

>

> Qamar A.

Use:

parseInt(String s)

zadoka at 2007-7-14 20:40:18 > top of Java-index,Java Essentials,New To Java...