Tue Apr 23, 2013 9:20 pm
/**
* @param strNumber number as String type.
* @return number as Integer type.
*/
private int getNumber(final String strNumber)
{
int number;
try
{
number = Integer.parseInt(strNumber);
} catch (NumberFormatException exception) {
exception.printStackTrace();
return -1;
}
return number;
}
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.