import java.util.Scanner;
public class Scan1
{
public static void main(String args[])
{
Scanner scann=new Scanner(System.in);
System.out.println("Please scan aword");
int a=scann.nextInt();
System.out.println(a);
}
}//这个scanner输入在运行后就可以输入了,但是他不能输入“空格”,用下面一个则可以输入空格,及多个字符。
import *
public class Scan1{
public static void main(String args[]) throws IOException
{
BufferedReader Scan=new BufferedReader(new InputStreamReader(System.in))
String a=Scan.readLine();
System.out.println("Please scan aword");
System.out.println(a);
}
}