![](https://lstatic.shangxueba.com/sxbzda/h5/images/m_q_title.png)
[主观题]
已知;1String input=JoptionPane.showInputDialog("Whats your name?");2int age=Integer.parseI
已知;1 String input=JoptionPane.showInputDialog ("Whats your name?");2 int age=Integer.parseIntln(input);语句2所起的作用是 ()
A.将字符串转化为整数
B.将整数转化为字符串
C.对字符串进行语法分析
D.对整数进行语法分析
![](https://lstatic.shangxueba.com/sxbzda/h5/images/tips_org.png)