Write a function that takes in a string parameter and checks to see whether or not it is an integer, and if it is then return the integer value.
See: StringUtil.atoi(String)
Your email is never published nor shared. Required fields are marked *
You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
I've got a masters degree in computer science and over 10 years of experience building web-based systems using Java/J2EE, Ruby, Rails and PHP. I'm a strong believer in the effectiveness of Agile Methods. Read more »
AtoI
The Problem
Write a function that takes in a string parameter and checks to see whether or not it is an integer, and if it is then return the integer value.
The Solution
See: StringUtil.atoi(String)