题解 | #成绩输入输出问题#
成绩输入输出问题
http://www.nowcoder.com/practice/951a61a193d84b049621717bc5f046df
解题思路
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] + " ");
}
}
}