customer.java
来自「基于netbeans环境开发的银行帐户管理系统. 主要是用swing组件,不适」· Java 代码 · 共 52 行
JAVA
52 行
/*
* Customer.java
*
* Created on 2006年9月27日, 下午2:34
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package account2;
/**
*
* @author Administrator
*/
public class Customer {
static Account a[] = new Account[100];
private static int sum = 0;
private static String cus_name;
private static int account_id;
/** Creates a new instance of Customer */
public Customer() {
}
public void createAccount(String name,int num){
for(int i =0 ;i<num;i++){
a[sum] = new Account(name);
sum = sum+1;
}
this.cus_name = name;
}
public int getSum(){
return sum;
}
public void setCustomer_name(String name){
this.cus_name = name;
}
public String getCustomer_name(){
return cus_name;
}
public void setCustomer_id(int id){
this.account_id = id;
}
public int getAccount_id(){
return account_id;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?