Scripts 学盟

标题: 学生成绩管理程序。添加学生信息的代码怎么写?链表是后插式的 [打印本页]

作者: 匿名    时间: 2013-6-30 14:25:48     标题: 学生成绩管理程序。添加学生信息的代码怎么写?链表是后插式的

import java.util.Scanner; public class console { public static void main(String[] agrs){ show(); } public void crate(Object id,String name,int score){ Student id1 =new Student(); } public static void show(){ System.out.println("================================================="); System.out.println("学生成绩管理 "); System.out.println("1.XX"); System.out.println("2.XX"); System.out.println("3.XX"); System.out.println("4.XX"); System.out.println("5.XX"); System.out.println("6.XX"); System.out.println("7.XX"); System.out.println("8.XX"); Scanner k =new Scanner(System.in); while(k.hasNext()){ int i = k.nextInt(); switch(i){ case 1: System.out.println("1次奥你妹,"); break; case 2:System.out.println("2次奥你妹,"); break; case 3:System.out.println("3次奥你妹,"); break; case 4:System.out.println("4次奥你妹,"); break; case 5:System.out.println("5次奥你妹,"); break; case 6:System.out.println("6次奥你妹,"); break; case 7:System.out.println("7次奥你妹,"); break; case 8:System.out.println("8次奥你妹,"); break; } } } }




欢迎光临 Scripts 学盟 (http://www.iscripts.org/) Powered by Discuz! X2