import java.util.Scanner;
public class 标准输入 {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner scanner=new Scanner(System.in);
String name=scanner.nextLine();
System.out.println(name);
int a=scanner.nextInt();
System.out.println(a);
float b=scanner.nextFloat();
System.out.println(b);
}
}
Java实现类似C语言的标准scanf输入
最新推荐文章于 2021-05-22 07:41:59 发布