xxxx18一60岁hd中国/日韩女同互慰一区二区/西西人体扒开双腿无遮挡/日韩欧美黄色一级片 - 色护士精品影院www

  • 大小: 162KB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2024-02-04
  • 語言: Java
  • 標(biāo)簽: java??

資源簡介

用Java語言實(shí)現(xiàn),具有如下功能:如下功能:正常密碼登錄后,界面菜單實(shí)現(xiàn)賬戶查詢(余額查詢,交易明細(xì))、轉(zhuǎn)賬、密碼修改等,系統(tǒng)具備登錄時(shí)輸入三次錯誤密碼系統(tǒng)自動鎖定,卡號、密碼、卡上余額等信息都存儲在文件中。內(nèi)附實(shí)驗(yàn)報(bào)告!!

資源截圖

代碼片段和文件信息

package?contentcl;

import?java.io.BufferedReader;
import?java.io.File;
import?java.io.FileNotFoundException;
import?java.io.FileReader;
import?java.io.IOException;
import?java.util.regex.Matcher;
import?java.util.regex.Pattern;

public?class?Check?{

/**
?*?在登錄時(shí),?驗(yàn)證賬號密碼是否正確
?*/
public?boolean??check1(String?countnameString?pwd)?throws?IOException{

File?file=new?File(“Message.txt“);???//創(chuàng)建文件類
????????if(!file.exists()||file.isDirectory())?//判斷文件是否存在
????????????//throw?new?FileNotFoundException();
???????? file.createNewFile();
????????BufferedReader?br=new?BufferedReader(new?FileReader(file));?//創(chuàng)建讀入緩沖流,按行讀入
????????String?temp=null;???
???????//?StringBuffer?sb=new?StringBuffer();???
????????temp=br.readLine();???//先讀取一行
????????while(temp!=null){
???????? String?sbstring?=?temp.toString();???//轉(zhuǎn)化為string
???????? int?n?=?sbstring.length();????????????//測字符串長度
???????? String?[]message?=?new?String[5];?????//按~拆分?成5個字符串?dāng)?shù)組,按賬號和密碼進(jìn)行信息驗(yàn)證
???????? int?k=0;
????????
???????? for?(int?i=0;?i<5;?i++)
???????? message[i]=““;
???????? //我們在寫入賬戶時(shí)用~分割,?所以我們利用~在分割開來
???????? for?(int?i=0;?i???????? {
???????? if(sbstring.charAt(i)==‘~‘)
???????? {
???????? //System.out.println(“@“+message[k]);
???????? k++;
???????? }
???????? else?
???????? {
???????? message[k]?+=?sbstring.charAt(i);
???????? }
???????? }
???????? if?(countname.equals(message[2])&&pwd.equals(message[3]))//比較賬戶密碼是否相等
???????? return?true;
????????????temp=br.readLine();??//讀取下一行
????????}
????????return?false;


}

//在注冊時(shí)?驗(yàn)證賬號是否存在
public?boolean??check2(String?countname)?throws?IOException{

File?file=new?File(“Message.txt“);???//創(chuàng)建文件類
????????if(!file.exists()||file.isDirectory())?//判斷文件是否存在
???????? file.createNewFile();
????????BufferedReader?br=new?BufferedReader(new?FileReader(file));?//創(chuàng)建讀入緩沖流,按行讀入
????????String?temp=null;???
???????//?StringBuffer?sb=new?StringBuffer();???
????????temp=br.readLine();???//先讀取一行
????????while(temp!=null){
???????? String?sbstring?=?temp.toString();???//轉(zhuǎn)化為string
???????? int?n?=?sbstring.length();????????????//測字符串長度
???????? String?[]message?=?new?String[5];?????//按~拆分?成5個字符串?dāng)?shù)組,按賬號和密碼進(jìn)行信息驗(yàn)證
???????? int?k=0;
????????
???????? for?(int?i=0;?i<5;?i++)
???????? message[i]=““;
???????? for?(int?i=0;?i???????? {
???????? if(sbstring.charAt(i)==‘~‘)
???????? {
???????? //System.out.println(“@“+message[k]);
???????? k++;
???????? }
???????? else?
???????? {
???????? message[k]?+=?sbstring.charAt(i);
???????? }
???????? }
???????? if?(countname.equals(message[2]))
???????? return?true;
????????????temp=br.readLine();
????????}
????????return?false;
}
//在掛失是?找回密碼需要驗(yàn)證,?姓名,身份證號,和賬戶是否與注冊時(shí)保持一致
public?String??check3(String?name?String?useridString?countname)?throws?IOException{

File?file=new?File(“Message.txt“);???//創(chuàng)建文件類
????????if(!file.exists()||file.isDirectory())?//判斷文件是否存在
????????

?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2019-09-05?15:33??網(wǎng)上銀行系統(tǒng)\
?????目錄???????????0??2019-09-05?15:26??網(wǎng)上銀行系統(tǒng)\BankSystem\
?????文件?????????404??2017-12-27?19:45??網(wǎng)上銀行系統(tǒng)\BankSystem\.classpath
?????文件?????????386??2018-01-02?20:05??網(wǎng)上銀行系統(tǒng)\BankSystem\.project
?????目錄???????????0??2019-09-05?15:26??網(wǎng)上銀行系統(tǒng)\BankSystem\.settings\
?????文件?????????598??2017-12-21?16:14??網(wǎng)上銀行系統(tǒng)\BankSystem\.settings\org.eclipse.jdt.core.prefs
?????文件??????????86??2018-12-20?10:03??網(wǎng)上銀行系統(tǒng)\BankSystem\Message.txt
?????目錄???????????0??2019-09-05?15:26??網(wǎng)上銀行系統(tǒng)\BankSystem\bin\
?????目錄???????????0??2019-09-05?15:26??網(wǎng)上銀行系統(tǒng)\BankSystem\bin\contentcl\
?????文件????????3781??2019-09-05?08:30??網(wǎng)上銀行系統(tǒng)\BankSystem\bin\contentcl\Check.class
?????文件????????3376??2019-09-05?08:30??網(wǎng)上銀行系統(tǒng)\BankSystem\bin\contentcl\DrawMoney.class
?????文件????????2479??2019-09-05?08:30??網(wǎng)上銀行系統(tǒng)\BankSystem\bin\contentcl\Inquiry.class
?????文件????????3981??2019-09-05?08:30??網(wǎng)上銀行系統(tǒng)\BankSystem\bin\contentcl\Login.class
?????文件????????1248??2019-09-05?08:30??網(wǎng)上銀行系統(tǒng)\BankSystem\bin\contentcl\MD5.class
?????文件?????????458??2019-09-05?08:30??網(wǎng)上銀行系統(tǒng)\BankSystem\bin\contentcl\Main.class
?????文件????????2826??2019-09-05?08:30??網(wǎng)上銀行系統(tǒng)\BankSystem\bin\contentcl\Menu.class
?????文件????????3168??2019-09-05?08:30??網(wǎng)上銀行系統(tǒng)\BankSystem\bin\contentcl\Modify.class
?????文件????????4539??2019-09-05?08:30??網(wǎng)上銀行系統(tǒng)\BankSystem\bin\contentcl\Register.class
?????文件????????3997??2019-09-05?08:30??網(wǎng)上銀行系統(tǒng)\BankSystem\bin\contentcl\ReportLose.class
?????文件????????3307??2019-09-05?08:30??網(wǎng)上銀行系統(tǒng)\BankSystem\bin\contentcl\SaveMoney.class
?????文件????????3482??2019-09-05?08:30??網(wǎng)上銀行系統(tǒng)\BankSystem\bin\contentcl\Transfer.class
?????文件????????4354??2019-09-05?08:30??網(wǎng)上銀行系統(tǒng)\BankSystem\bin\contentcl\TransferToOthers.class
?????文件????????4675??2019-09-05?08:30??網(wǎng)上銀行系統(tǒng)\BankSystem\bin\contentcl\UserMessage.class
?????目錄???????????0??2019-09-05?15:26??網(wǎng)上銀行系統(tǒng)\BankSystem\src\
?????目錄???????????0??2019-09-05?15:26??網(wǎng)上銀行系統(tǒng)\BankSystem\src\contentcl\
?????文件????????5068??2017-12-28?18:40??網(wǎng)上銀行系統(tǒng)\BankSystem\src\contentcl\Check.java
?????文件????????3462??2017-12-27?15:01??網(wǎng)上銀行系統(tǒng)\BankSystem\src\contentcl\DrawMoney.java
?????文件????????2293??2017-12-27?20:56??網(wǎng)上銀行系統(tǒng)\BankSystem\src\contentcl\Inquiry.java
?????文件????????3945??2017-12-27?20:51??網(wǎng)上銀行系統(tǒng)\BankSystem\src\contentcl\Login.java
?????文件?????????860??2017-12-27?19:46??網(wǎng)上銀行系統(tǒng)\BankSystem\src\contentcl\MD5.java
?????文件?????????160??2017-12-27?14:54??網(wǎng)上銀行系統(tǒng)\BankSystem\src\contentcl\Main.java
............此處省略9個文件信息

評論

共有 條評論

相關(guān)資源