Theprogrammersfirst
A technical portal. It contains well explained topics and articles.
Home
Tutorials
Java
Data Structure
Algorithm
Interview Questions
Ask Question
Discussion
About Us
2019-03-24
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);
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment