解题思路
public class Main{
public static void main(String[] args){
Scanner sin = new Scanner(System.in);
int[] n = new int[10];
int i = 0;
while(sin.hasNext()){
// n[i++] = sin.nextInt();
System.out.print(sin.nextInt() + " ");
}
// 调用方法打印
// printList(n);
}
public static void printList(int[] n){
for(int i=0;i<n.length;i++){
System.out.print(n[i] + " ");
}
}
}