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

Today Walkin 14th-Sept

Spring Elasticsearch Operations

Hibernate Search - Elasticsearch with JSON manipulation