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 ...
随机推荐
- SharePoint Framework 在Visual Studio Code中调试你的本地解决方案
博客地址:http://blog.csdn.net/FoxDave Visual Studio Code不知道大家都有没有,界面清爽,编辑快速,是一个非常好的前端开发工具.本文介绍如何使用Goog ...
- VC 任务栏图标闪烁
像QQ来消息时的,图标闪烁效果 将如下代码添加到Timer响应函数中 ) {// 任务栏图标闪烁 if (this != GetForegroundWindow()) { //// this-> ...
- Python 连接 redis 模块
redis 模块使用可以分类为: 连接方式 连接池 操作 String操作 Hash操作 List操作 Set操作 Sort Set操作 管道 发布订阅 (1)操作模式 redis提供两个类Redis ...
- Windows 窗体设计器生成的代码
namespace 窗体的浮动及隐藏{ partial class Form1 { /// <summary> /// 必需的设计器变量. ...
- 【Python】进程-锁(1)
#第二题,做一个加减乘除的考试系统,自动出题,自动判对错,并统计结果,一次考试10道题 import random symbols=["+","-"," ...
- Threejs着色器基本使用样例改造
<!DOCTYPE html> <html lang="en"> <head> <title>three.js webgl - bu ...
- 【转载】 【caffe转向pytorch】caffe的BN层+scale层=pytorch的BN层
原文地址: https://blog.csdn.net/u011668104/article/details/81532592 ------------------------------------ ...
- 【letcode】5-LongestPalindromicSubstring
回文串 回文串(palindromic string)是指这个字符串无论从左读还是从右读,所读的顺序是一样的:简而言之,回文串是左右对称的.一般求解一个字符串的最长回文子串问题. problem:Lo ...
- Linux系统下curl命令上传文件,文件名包含逗号无法上传
使用curl命令,将备份好的图片全部重新导入到seaweedfs,图片全部以存储在seaweedfs中的fid命令, fid中间有一个逗号,使用curl命令时报错: curl: (26) couldn ...
- thinkphp error:no database select
配置正确,项目运行时确出现,no database selected . 解决方法: 需要清除 /App/Runtime runtime~.php文件