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

正文內(nèi)容

數(shù)據(jù)結構課程設計—java通訊錄管理系統(tǒng)(編輯修改稿)

2025-09-03 14:55 本頁面
 

【文章內(nèi)容簡介】 暫時間的一個方法完全可以不要這個功能 {double seconds = sec。long t = ()+(int)(seconds*1000)。while ((())amp。lt。t)。}public void numSort()//按學號排序throws IOException{long i = 0。String s = amp。quot。amp。quot。try{DataArrayList dal = new DataArrayList()。BufferedReader in =new BufferedReader(new FileReader(amp。quot。c:\\amp。quot。))。while ((s=())!=null){i=numberTokenizer(s)。(i)。}(dal)。DataMap dm = new DataMap()。BufferedReader in2 =new BufferedReader(new FileReader(amp。quot。c:\\amp。quot。))。while ((s=())!=null){i=numberTokenizer(s)。(i,s)。}PrintWriter out =new PrintWriter (new BufferedWriter(new FileWriter(amp。quot。c:\\amp。quot。)))。 Iterator it = ()。long temp = 0。String tempStr = amp。quot。amp。quot。while (()){temp = ((String)()).longValue()。 tempStr = (temp)。(tempStr)。}()。}catch(IOException e){}}public void rewrite()throws IOException,NumberNotFoundException{try{(amp。quot。請輸入你要修改的學生號碼:amp。quot。)。 BufferedReader in =new BufferedReader (new InputStreamReader())。 String inputLine = ()。long num = (inputLine).longValue()。 findData(num)。if(isFind) { deleteData(num)。 (amp。quot。請重新輸入該號碼:amp。quot。)。 String str = inputData()。addData(str)。(amp。quot。rewrite true!amp。quot。)。}}catch(IOException e){}catch(NumberNotFoundException e){}}public int count()throws IOException{ DataArrayList dal = new DataArrayList()。try{String s = amp。quot。amp。quot。long i =0。BufferedReader in =new BufferedReader(new FileReader(amp。quot。c:\\amp。quot。))。while ((s=())!=null){i=numberTokenizer(s)。(i)。}}catch(IOException e){}return ()。}}/*** @author RangWei* TODO 這是個寫的一個容器,繼承公共類HashMap* 大概的功能就相當一個數(shù)組**/class DataMap extends HashMap//一個存儲數(shù)據(jù)的Map{public void put(long i,String str)//把學號和數(shù)據(jù)放進這個Map{ //以后一個學號(key)對應的是一個人的數(shù)據(jù)(value)put((i).toString(),str)。}public void remove(long i)//接收學號,然后刪除學號(key)和它對應的數(shù)據(jù)(value) {remove((i).toString().toString())。}public String get(long i)//接收一個學號,然后返回這個key對應的value{String s = (i).toString()。if (!containsKey(s)){(amp。quot。Not found Key: amp。quot。+s)。}return (String)get(s)。}}/* * * @author RangWei * * TODO 這個類繼承ArrayList* 用來按數(shù)字排序,在用號碼排序時要用到它**/class DataArrayList extends ArrayList{public void add(long num){String numToString = (num).toString()。 add(numToString)。}}/*** @author RangWei** TODO 增加的一個Exception,主要是在文件里沒有要找 * 的號碼就拋出**/class NumberNotFoundException extends Exception{ public NumberNotFoundException(){}}quot。)。(0)。}public String inputData()//從終端接收數(shù)據(jù)的方法,返回字符串throws IOException,NumberFormatException{(amp。quot。請依次輸入 :號碼 姓名 地址 生日\namp。quot。 +amp。quot。每項數(shù)據(jù)請用空格隔開:amp。quot。)。String all = amp。quot。amp。quot。try{BufferedReader in = //從終new BufferedReader ( //端接new InputStreamReader())。 //收數(shù)String inputLine = ()。 //據(jù)StringTokenizer str = new StringTokenizer(inputLine,amp。quot。 amp。quot。)。//接收的數(shù)據(jù)用空格隔開,這個類用來提取每個字符串long num = (()).longValue()。//號碼
點擊復制文檔內(nèi)容
環(huán)評公示相關推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1