import java.util.*;
public class main {
public static void main(String args[])
{
System.out.println("请输入:");
Scanner reader=new Scanner(System.in);
int num= reader.nextInt();
System.out.println();
}
原博地址
https://blog.csdn.net/weixin_43673589