package io;
import java.util.*;
public class useScanner {
public static void main(String[] args) {
Scanner in=new Scanner(System.in);
System.out.println("请输入你的姓名:");
String name=in.nextLine();
System.out.println("请输入你的年龄:");
int age=in.nextInt();
System.out.println("请输入你的身高(单位:米):");
double height=in.nextDouble();
System.out.println("姓名:"+name+"年龄:"+age+"身高:"+height);
}
}
时间: 2024-10-03 02:13:41