package proj__;
import java.util.Scanner;
public class test {
public static void main(String[] args) {
// TODO Auto-generated method stub
int s,sum=0;
Scanner sc = new Scanner(System.in);
sc.useDelimiter("\\s");
while(sc.hasNextInt()){
s = sc.nextInt();
sum +=s;
}
sc.close();
System.out.println("sum="+sum);
}
}
我们组的期末作品是闹钟