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");
} }
java程序源码的更多相关文章
- 程序兵法:Java String 源码的排序算法(一)
摘要: 原创出处 https://www.bysocket.com 「公众号:泥瓦匠BYSocket 」欢迎关注和转载,保留摘要,谢谢! 这是泥瓦匠的第103篇原创 <程序兵法:Java Str ...
- Java集合源码学习(一)集合框架概览
>>集合框架 Java集合框架包含了大部分Java开发中用到的数据结构,主要包括List列表.Set集合.Map映射.迭代器(Iterator.Enumeration).工具类(Array ...
- 编译哈工大语言技术平台云LTP(C++)源码及LTP4J(Java)源码
转自:编译哈工大语言技术平台云LTP(C++)源码及LTP4J(Java)源码 JDK:java version “1.8.0_31”Java(TM) SE Runtime Environment ( ...
- 【转】Java HashMap 源码解析(好文章)
.fluid-width-video-wrapper { width: 100%; position: relative; padding: 0; } .fluid-width-video-wra ...
- Java Reference 源码分析
@(Java)[Reference] Java Reference 源码分析 Reference对象封装了其它对象的引用,可以和普通的对象一样操作,在一定的限制条件下,支持和垃圾收集器的交互.即可以使 ...
- 自学Java HashMap源码
自学Java HashMap源码 参考:http://zhangshixi.iteye.com/blog/672697 HashMap概述 HashMap是基于哈希表的Map接口的非同步实现.此实现提 ...
- Java——LinkedHashMap源码解析
以下针对JDK 1.8版本中的LinkedHashMap进行分析. 对于HashMap的源码解析,可阅读Java--HashMap源码解析 概述 哈希表和链表基于Map接口的实现,其具有可预测的迭 ...
- Java读源码之CountDownLatch
前言 相信大家都挺熟悉 CountDownLatch 的,顾名思义就是一个栅栏,其主要作用是多线程环境下,让多个线程在栅栏门口等待,所有线程到齐后,栅栏打开程序继续执行. 案例 用一个最简单的案例引出 ...
- java集合源码分析(三):ArrayList
概述 在前文:java集合源码分析(二):List与AbstractList 和 java集合源码分析(一):Collection 与 AbstractCollection 中,我们大致了解了从 Co ...
随机推荐
- jquery获取URL的参数和锚点
由于经常会用到替换URL参数值,而网上写的方法代码都太长了,所以在这里写了一个简单的方法,供大家使用. 1)获取url参数 function getUrlParam(name) { var reg = ...
- hdu3001(状压dp,三进制)
Travelling Time Limit: 6000/3000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total ...
- L293 给地球降温
Countries look at ways to tinker with Earth’s thermostat The idea of cooling the climate with strato ...
- go语言求1到100之内的质数
素数指在一个大于1的自然数中,除了1和此整数自身外,没法被其他自然数整除的数.换句话说,只有两个正因数(1和自己)的自然数即为素数(也叫质数).比1大但不是素数的数称为合数.1和0既非素数也非合数. ...
- Oracle create tablespace 、create user and so on
1.创建临时表空间 CREATE TEMPORARY TABLESPACE test_tempTEMPFILE 'C:\oracle\product\10.1.0\oradata\orcl\test_ ...
- LeetCode--122、167、169、189、217 Array(Easy)
122. Best Time to Buy and Sell Stock II Say you have an array for which the ith element is the price ...
- python构造IP报文
import socket import sys import time import struct HOST, PORT = "10.60.66.66", 10086 def m ...
- java的异常抛出和String类常用方法
一.异常抛出 异常是程序的异种非错误的意外情况,分为运行期异常(RuntimeException)和编译期异常(CheckedExcption) 处理异常可以用try——catch或自定义 impor ...
- Gym-101673 :East Central North America Regional Contest (ECNA 2017)(寒假自训第8场)
A .Abstract Art 题意:求多个多边形的面积并. 思路:模板题. #include<bits/stdc++.h> using namespace std; typedef lo ...
- 2017.4.5 OpenStack简介
OpenStack 管理的资源不是单机的而是一个分布的系统,把分布的计算.存储.网络.设备.资源组织起来,形成一个完整的云计算系统:OpenStack 也提供一个 UI,这里包括一个图形化的 UI:H ...