public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("输入自己的年龄和身高(要带小数),中间用逗号隔开");
String n = sc.next();
String[] split = n.split(",");
int age = Integer.parseInt(split[0]);
double height = Double.parseDouble(split[1]);
System.out.println("转成整数的年龄是"+age);
System.out.println("转成小数后的身高是"+height);
}