quick java question

  • From: Alex Parks <mehgcap@xxxxxxx>
  • To: programmingblind@xxxxxxxxxxxxx
  • Date: Thu, 29 Nov 2007 00:50:53 -0500

Hi all,
Is there a quick way of determining if the user input is a number? I need it to be a number; it throws an exception and exits the program if it isn't. Maybe something like:
if (input!=\int
I have no idea about the syntax, but something along those lines is what I am looking for. Thanks for any help.

Have a great day,
Alex
__________
View the list's information and change your settings at //www.freelists.org/list/programmingblind

Other related posts: