一、求和代码
import java.util.Scanner;public class Test{ /*** @param args*/public static void main(String[] args) { // TODO Auto-generated method stubint nextValue;int sum = 0;Scanner kbInput = new Scanner(System.in);kbInput.useDelimiter("\\s");while(kbInput.hasNextInt()){ nextValue = kbInput.nextInt();sum += nextValue;}kbInput.close();System.out.println("sum = " + sum);}
}
二、课程设计选题:音乐播放器界面