I am trying to write a method that returns an int from a String variable.My method is:
int
String
public int returnInt(String s) {}
Answer
You can use Integer.valueOf(String) for this
Integer.valueOf(String)
Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...
No comments:
Post a Comment