java程序源码

//Account.java
package pers.liqin.accounlist;

public class Account 
{
	private String accountID;
	private String accountname;
  	private String operatedate;
  	private int operatetype;
  	private String accountpassword;
  	private int accountbalance;
  	private int amount;
  	public Account()
  	{
  		super();
  	}
  	public String getaccountID()
  	{
  		return accountID;
  	}
  	public void setaccountID(String accountID)
  	{
  		this.accountID=accountID;
  	}
  	public String getaccountname()
  	{
  		return accountname;
  	}
  	public void setaccountname(String accountname)
  	{
  		this.accountname=accountname;
  	}
  	public String getoperatedate()
  	{
  		return operatedate;
  	}
  	public void setoperatedate(String operatedate)
  	{
  		this.operatedate=operatedate;
  	}
  	public int getoperatetype()
  	{
  		return operatetype;
  	}
  	public void setoperatetype(int operatetype)
  	{
  		this.operatetype=operatetype;
  	}
  	public String getaccountpassword()
  	{
  		return accountpassword;
  	}
  	public void setaccountpassword(String accountpassword)
  	{
  		this.accountpassword=accountpassword;
  	}
  	public int getaccountbalance()
  	{
  		return accountbalance;
  	}
  	public void setaccountbalance(int accountbalance)
  	{
  		this.accountbalance=accountbalance;
  	}
  	public int getamount()
  	{
  		return amount;
  	}
  	public void setamount(int amount)
  	{
  		this.amount=amount;
  	}
}
//AccountManager.java
package pers.liqin.accounlist;

public class Account 
{
	private String accountID;
	private String accountname;
  	private String operatedate;
  	private int operatetype;
  	private String accountpassword;
  	private int accountbalance;
  	private int amount;
  	public Account()
  	{
  		super();
  	}
  	public String getaccountID()
  	{
  		return accountID;
  	}
  	public void setaccountID(String accountID)
  	{
  		this.accountID=accountID;
  	}
  	public String getaccountname()
  	{
  		return accountname;
  	}
  	public void setaccountname(String accountname)
  	{
  		this.accountname=accountname;
  	}
  	public String getoperatedate()
  	{
  		return operatedate;
  	}
  	public void setoperatedate(String operatedate)
  	{
  		this.operatedate=operatedate;
  	}
  	public int getoperatetype()
  	{
  		return operatetype;
  	}
  	public void setoperatetype(int operatetype)
  	{
  		this.operatetype=operatetype;
  	}
  	public String getaccountpassword()
  	{
  		return accountpassword;
  	}
  	public void setaccountpassword(String accountpassword)
  	{
  		this.accountpassword=accountpassword;
  	}
  	public int getaccountbalance()
  	{
  		return accountbalance;
  	}
  	public void setaccountbalance(int accountbalance)
  	{
  		this.accountbalance=accountbalance;
  	}
  	public int getamount()
  	{
  		return amount;
  	}
  	public void setamount(int amount)
  	{
  		this.amount=amount;
  	}
}
//Exporttxt.java
package pers.liqin.accounlist;
import java.io.File;

import java.util.Scanner;
public class Exporttxt 
{   
	  static Scanner scn= new Scanner(System.in);
       File(String "c:\Users\Administrator\eclipse-workspace\accountlist",String "accountinformation.txt");
       
      public void zhanghao()
      {
    	System.out.println("*****************************\n"
                        +"     欢迎使用中国工商银行自助柜员系统                  \n"
                        + "   请输入您的账号:");
    	
      }
      public void mima()
      {
    	  System.out.println("*****************************\n"
                  +"     欢迎使用中国工商银行自助柜员系统                  \n"
                  + "   请输入您的密码:");  
      }
      public void add()
      {
       System.out.println("*****************************\n"
       		            + "    欢迎使用中国工商银行自助柜员系统                  \n ");
       acc=new Account();
      
       System.out.println("请输入存款金额:");
       acc.setaccountbalance(scn.nextInt());
      }
      public void qukuan()
      {
    	  System.out.println("******************************\n"
    	  		           + "   欢迎使用中国工商银行自助柜员系统                        \n");
      }
      public void zhuanzhang()
      {
    	while(true)
    	{	  
    	 System.out.println("*******************************\n"
    	 	 	          + "  欢迎使用中国工商银行自助柜员系统                           \n"
    	 	 	          + "*******当前账户每日可以支取2万元\n"
    	 	 	          + "1,100元                         \n"
    	 	 	          + "2,500元                       \n"
    	 	 	          + "3,1000元                  \n"
    	 	 	          + "4,1500元                \n"
    	 	 	          + "5,2000元               \n"
    	 	 	          + "6,5000元             \n"
    	 	 	          + "7,其他金额             \n"
    	 	 	          + "8,退卡                     \n"
    	 	 	          + "9,返回                   \n"
    	 	 	          + "********************************\n"); 
    	 System.out.println("请输入您的选择:");
    	 int xuanze=scn.nextInt();
    	 switch(xuanze)
    	 {
    	 case 1:
    		 
    		 break;
    	 case 2:
    		 
    		 break;
    	 case 3:
    		 
    		 break;
    	 case 4:
    		 
    		 break;
    	 case 5:
    		 
    		 break;
    	 case 6:
    		 
    		 break;
    	 case 7:
    		 System.out.println("*********************\n"
    		 		          + "欢迎使用中国工商银行自助柜台系统\n"
    		 		          + "*********************\n"
    		 		          + "          请输入取款金额:                     \n"
    		 		          + "********************\n");
    		 
    		 break;
    	 case 8:
    		 
    		 break;
    	 case 9:
    		 break;
    	 
    	 }
    	}	 
    	 
      }
      public void xiugai()
      {
    	  System.out.println("*************************\n"
    	  		           + " 欢迎使用中国工商银行自助柜台系统          \n"
    	  		           + "*************************\n"
    	  		           + "      请输入当前密码:                                     \n"
    	  		           + "  请输入修改密码:                                       \n"
    	  		           + "  请输入确定密码:                                    \n");
    	  
      }
      public void chaxun()
      {
    	  System.out.println("*************************\n"
 		           + " 欢迎使用中国工商银行自助柜台系统          \n"
 		           + "*************************\n"
 		           + "   当前余额:                                                    \n"
 		           + "    账户清单信息为:                                     \n"); 
      }
      
	}

  

版权声明:本文为lq13035130506原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://www.cnblogs.com/lq13035130506/p/9695892.html