java :键盘录入

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int x = scanner.nextInt();
        System.out.println(x);
    }

你可能感兴趣的:(java,java,开发语言)