第三次作业
2016-03-28 19:50 小雪的微笑 阅读(146) 评论(0) 收藏 举报import java.util.Scanner;
public class Practice {
public static void main(String[] args) {
int nextValue;
int sum = 0;
Scanner kbInput = new Scanner(System.in);
kbInput.useDelimiter("\\s");
while (kbInput.hasNextInt()) {
nextValue = kbInput.nextInt();
sum += nextValue;
}
System.out.println("Sum:" + sum);
}
}
浙公网安备 33010602011771号