测试心得
開學的測試測得真的是心里絕望,差不多玩了一暑假,Java就學了一點點,過了這么長時間差不多也忘完了,老師的測試不能說全不會吧,百分之99還是不會的,在宿舍的幫助下還是完成了一些基礎的東西。老師布置的1000字心得也寫不夠字數了。今后我一定會把之前漏掉的補上的,這次就完不成了。雖然很不好意思,但是被逼無奈,自己寫不出來,不想抄別人的把別人拉下水,只能寫一個這樣的檢查了,程序也沒寫了多少,以后一定好好學習,把丟掉的東西不回來。
?
?
package Account;
import java.util.Scanner;
public class Account
{
private String accountID;
private String accountname;
private String operatedate;
private int operatetype;
private String accountpassword;
private int accountblance;
private int amount;
public String getaccountID()
{
return accountID;
}
public String getaccountname()
{
return accountname;
}
public String getoperatedate()
{
return operatedate;
}
public int getoperatetype()
{
return operatetype;
}
public String getaccountpassword()
{
return accountpassword;
}
public int getaccountblance()
{
return accountblance;
}
public int getamount()
{
return amount;
}
public void setaccountID(String a)
{
accountID=a;
}
public void setaccountname(String a)
{
accountname=a;
}
public void setoperatedate(String a)
{
operatedate=a;
}
public void setoperatetype(int a)
{
operatetype=a;
}
public void setaccountpassword(String a)
{
accountpassword=a;
}
public void setaccountblance(int a)
{
accountblance=a;
}
public void setamount(int a)
{
amount=a;
}
Account()
{
accountID="********";
accountname="";
operatedate="****-**-**";
operatetype=0;
accountpassword="******";
accountblance=0;
amount=0;
}
Account(String a,String b,String c,int d,String e,int f,int g)
{
accountID=a;
accountname=b;
operatedate=c;
operatetype=d;
accountpassword=e;
accountblance=f;
amount=g;
}
};
class Accountmanager
{
int k=1;
Account[] a=new Account[50];
Accountmanager(){
a[0]=new Account();
for(int i=1;i<50;i++)
a[i]=new Account("null","null","null",0,"null",0,0);
}
public void zhanghao()
{
String s;
Scanner account=new Scanner (System.in);
System.out.println("**********************************\n");
System.out.println("歡迎使用中國工商銀行自動柜員系統\n");
System.out.println("**********************************\n");
System.out.println("請輸入賬號:\n");
System.out.println("**********************************");
s=account.next();
if(true)
{
;
}
else
System.out.println("該賬號不存在");
}
public void mima()
{
}
}
轉載于:https://www.cnblogs.com/quyangzhangsiyuan/p/9696516.html
總結
- 上一篇: select,InnoDB为啥会阻塞in
- 下一篇: 重写equals所要遵守的约定