Thread
:
String to Integer conversion
View Single Post
#
1
(
permalink
)
12-17-2007, 10:11 AM
eva
Member
Join Date: Dec 2007
Posts: 49
String to Integer conversion
I want to convert a string to integer. I wrote following code but it throws exception.
Code:
String str = "22"; int a = (int)str;
Exception:
Code:
Cannot cast from String to int
Can anyone indicate the problem area?
-PEACE
Sponsored Links
eva
View Public Profile
Send a private message to eva
Find all posts by eva