6.Java基础_Java数据输入

 1 import java.util.Scanner;
 2 
 3 public class Output {
 4     public static void main(String[] args){
 5         Scanner sc=new Scanner(System.in);
 6         System.out.println("Please input a Inter: ");
 7         int num=sc.nextInt();
 8         System.out.println(num);
 9     }
10 }

猜你喜欢

转载自www.cnblogs.com/NiBosS/p/11937902.html