单项选择题

已知:
1 String input=JoptionPane.showlnputDialog
("Whats your name");
2 Int age=Integer.parseIntln(input);
语句2所起的作用是( )。

A.将字符串转换为整数
B.将整数转化为字符串
C.对字符串进行语法分析
D.对整数进行语法分析