package test.com; import java.util.Scanner; public class Test { 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); kbInput.close(); }}
我们期末要做的课题是 “考核系统界面”。