What does Integer.parseInt() method do in Java?
Answers
Answered by
1
The method generally used to convert String to Integer in Java is parseInt(). There are two variants of this method: public static int parseInt(String s) throws NumberFormatException - This function parses the string argument as a signed decimal integer.
Similar questions
Math,
6 months ago
Math,
6 months ago
Biology,
6 months ago
Computer Science,
1 year ago
Sociology,
1 year ago