不挂科搜题免费

问题:

在Java中,下列哪个方法用于将字符串转换为整数?

选项

  • parseInt()

  • toInt()

  • Integer.parseInt()

  • String.toInt()

  • 答案:

    C