Possible Duplicate:
Converting string to int in java
I am trying to write a method that returns an int from a String variable.
My method is: 
public int returnInt(String s) {
}
Possible Duplicate:
Converting string to int in java
I am trying to write a method that returns an int from a String variable.
My method is: 
public int returnInt(String s) {
}
You can use Integer.valueOf(String) for this
