Friday, March 2, 2018

java - method to convert from a string to an int











I am trying to write a method that returns an int from a String variable.
My method is:



public int returnInt(String s) {
}

Answer




You can use Integer.valueOf(String) for this


No comments:

Post a Comment

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...