怎么將數(shù)據(jù)存到數(shù)組里面!急急急?。?!萬分感謝!
String xssz[]=new String[30];
System.out.println("請?zhí)砑訉W(xué)生學(xué)號");?
int xh=ic.nextInt();
System.out.println("請?zhí)砑訉W(xué)生姓名");
String xm=ic.next();
System.out.println("請?zhí)砑訉W(xué)生數(shù)學(xué)成績");?
double sx=ic.nextDouble();
System.out.println("請?zhí)砑訉W(xué)生英語成績");?
double yy=ic.nextDouble();
System.out.println("該生信息添加成功");
for(int i=0;i<xssz.length;i++){
if(i>=xssz.length){
System.out.println("超出班級人數(shù)");
break;}
怎么將輸入的學(xué)生成績信息保存到數(shù)組里面!怎么修改!謝謝大神了!
2015-10-31
亂七八糟,你確定第一季學(xué)完了!