1 import java.util.Scanner; 2 public class Testscanner{ 3 public static void main(String[] args){ 4 int nextValue,sum = 0; 5 Scanner kpInput = new Scanner(System.in); 6 kpInput.useDelimiter("\\s"); 7 while(kpInput.hasNextInt()){ 8 nextValue = kpInput.nextInt(); 9 sum += nextValue; 10 } 11 kpInput.close(); 12 System.out.println("Sum = " + sum); 13 } 14 }
(2)我们小组期末课程选题为GUI图形用户界面。 希望可以基本实现游戏平台登录程序的功能,大致可以效仿腾讯TGP。
成员为朱益纹、张志伟、王翔。