我写的Java学生成绩管理系统源代码(16) } } public static void print()//读取文本文件把数据打印到终端的方法 throws IOException { try{ BufferedReader in = new BufferedReader( new FileReader("data.txt")); String read = ""; while ((read = in.readLine())!=null) System.out.println(read); }catch(IOException e){} } public static void timeOut(double sec)//停顿短暂时间的一个方法完全可以不要这个功能 { double seconds = sec; long t = System.currentTimeMillis()+(int)(seconds*1000); while ((System.currentTimeMillis())<t) ; } public void numSort()//按学号排序 throws IOException { long i = 0; String s = ""; try{ DataArrayList dal = new DataArrayList(); BufferedReader in =