View Single Post
Old 11-12-2009, 03:16 PM   #1
abhishek
Senior Member
 
abhishek's Avatar
 
Join Date: Dec 2009
Posts: 444
Rep Power: 18
abhishek is just really niceabhishek is just really niceabhishek is just really niceabhishek is just really nice
Lightbulb How to convert String to int?

It is very simple. Let's take an example.

Code:
public static void main(String[] args) {
 
String myString= "100";
int myInt = Integer.parseInt(myString);
    
System.out.println(myInt);
}

__________________
Join this forum, it's completely free.
abhishek is offline   Reply With Quote