Search This Blog

Friday, 1 June 2012

How to convert string into integer value in java or in Blackberry development...

Hello friends ,
                   This one is not so big issue but some how i was getting my app strucked because of this stupid thing, as in my previous post i told you hoe to use Persistent store ....same thing i was doing but,it gives me error once in a while ...and what i found is that i was using String variable , i dont know what's the problem with that but......ok i converted it into integer and sharing that thing with you nothing big to share actually :P


Suppose we have a string variable _str with some value:

int _status  = Integer.parseInt(_str);

Thats it , the String value is converted into integer value

No comments:

Post a Comment