Computer Applications

Name the method that can convert a string into its integer equivalent.

  1. Integer.parseInteger()
  2. Integer.getInt()
  3. Integer.parseInt()
  4. Integer.readInt()

Java Library Classes

7 Likes

Answer

Integer.parseInt()

Reason — Integer.parseInt() method parses the String argument as a signed integer.

Answered By

3 Likes


Related Questions