freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

java課程設(shè)計(jì)-學(xué)生學(xué)籍管理系統(tǒng)-預(yù)覽頁(yè)

 

【正文】 (xb)。 (100, 200, 50, 25)。 (230, 350, 60, 25)。 (150, 100, 110, 25)。 (150, 200, 50, 25)。(80,450,80,20) 。 (titles)。 (0, 430, 400,300)。 (this)。 setVisible(true)。以下為具體的代碼:public void addDate(){ String sex = null。 PrintWriter mm = null。 } catch (IOException e1) { ()。 (null)。 (rb_woman)。public void repDate(){ (null)。 (rb_man)。 (rb_man)。 ()。 }定義查詢方法實(shí)現(xiàn)查詢功能,首先使用equals方法進(jìn)行判別學(xué)號(hào)輸入?yún)^(qū)文本框中的內(nèi)容是否為空,為空的時(shí)候則提示用回輸入學(xué)號(hào)進(jìn)行查詢,不為空使用類BufferedReader下的readLine(), 使用類StringTokenizer對(duì)讀取的整行數(shù)據(jù)以“|“進(jìn)行分割,每個(gè)分割點(diǎn)的內(nèi)容賦值給String類型的num,name,sex,grade,xibie。 } try { BufferedReader in = new BufferedReader(new FileReader())。 name=()。 if((())){ (num)。 (grade)。在實(shí)現(xiàn)刪除功能時(shí),本系統(tǒng)采用緩沖流StringBufferbuf的相關(guān)特性,在信息匹配成功之后,使用readLine()方法自動(dòng)查找到該學(xué)籍信息在文本文件中所在的行,將該行之前的內(nèi)容使用append()方法追加到緩沖流buf中,而該行數(shù)據(jù)則設(shè)置為空追加至buf中,該行之后的內(nèi)容則正常追加至buf中,其中也包括對(duì)文件讀取寫入的異常的處理,從而實(shí)現(xiàn)了信息的刪除。 int ok=(null,m,確認(rèn),)。 num=()。 xibie =()。 StringBuffer buf = new StringBuffer()。amp。 } while ((s = ()) != null) { buf = (s)。 PrintWriter pw = new PrintWriter(new FileOutputStream(file))。 } catch (IOException e) { ()。 (null)。 (false)。以下為具體代碼:public void editData(){ if(()){ sex=()。 if(ok==){ try { BufferedReader in = new BufferedReader(new FileReader())。 name=()。 if((())){ oldStr = num +|+name+|+sex+|+grade+|+ xibie。 StringBuffer buf = new StringBuffer()。amp。 } while ((s = ()) != null) { buf = (s)。 PrintWriter pw = new PrintWriter(new FileOutputStream(file))。 } catch (IOException e) { ()。 (null)。 (學(xué)生信息)。以下為主函數(shù)代碼:public class AddStudentInformation { public static void main(String[] args) throws IOException { AddStudent add_student = new AddStudent(學(xué)生學(xué)籍系統(tǒng))。通過(guò)此次學(xué)生學(xué)籍管理系統(tǒng)的設(shè)計(jì),使我們對(duì)java編程語(yǔ)言有了更深層次的了解。參考文獻(xiàn)[1](美)Cay 、Gary Cornell(葉乃文、鄺勁筠 等譯).JAVA2 核心技術(shù)卷[M].,2006[2] 龔永罡、[M].清華大學(xué)出版社,2009[3] 劉兆宏、鄭莉、陳建、[M].清華大學(xué)出版社,2008[4] 王舜燕、[M].北京郵電大學(xué)出版社,200818
點(diǎn)擊復(fù)制文檔內(nèi)容
醫(yī)療健康相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1