单项选择题

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

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