Hi,
I need to convert an Alphanumeric (eg. "ABC123"
into an Integer (eg. "123"
.
I've tried using :
int x = Integer.valueOf(str).intValue()
but I get an exception. I cant find anything that will handle the alpha's in my string, so I presume I need to strip them out. Any suggestions on how I could get all this to work ?
I need to convert an Alphanumeric (eg. "ABC123"
I've tried using :
int x = Integer.valueOf(str).intValue()
but I get an exception. I cant find anything that will handle the alpha's in my string, so I presume I need to strip them out. Any suggestions on how I could get all this to work ?