Convert String to an int

How to convert a String to an int ?

String str = "1234";

Integer x = Integer.valueOf(str);
// or
int y = Integer.parseInt(str);



Comments

Popular posts from this blog

I get wrong characters when retreiving the message body of an email using TIdIMAP4.UIDRetrieveTextPeek2()

How to drop the all the 1's in a correlation matrix

Today Walkin 14th-Sept