例如:
import java.util.Scanner;
public class Test
{ public static void main (String args []); { Scanner input=new Scanner(System.in); System.out.println("请输入一个数字"); int x=input.nextInt(); .........
例如:
import java.util.Scanner;
public class Test
{ public static void main (String args []); { Scanner input=new Scanner(System.in); System.out.println("请输入一个数字"); int x=input.nextInt(); .........