Question: How would you convert a String to an Int?

  1. `"21".intValue()`
  2. `String.toInt("21")`
  3. `Integer.parseInt("21")`
  4. `String.valueOf("21")`

Answer: The correct answer of the above question is Option C:`Integer.parseInt("21")`