2017-05-24|1062阅|作者:小鱼宝宝|举报 摘要:jhjknkmm,t java.util.*;
public class UserInterface
{
public static void main(String args[]){
Cards card0 = new Cards();
public class UserInterface
|
public static void main(String args[]){
|
Cards card0 = new Cards();
|
Cards card1 =new SavingsCard();
|
Cards card2 =new CreditCard();
|
Scanner scan = new Scanner(System.in);
|
Scanner scan0 = new Scanner(System.in);
|
Scanner scan1 = new Scanner(System.in);
|
Scanner scan2 = new Scanner(System.in);
|
System.out.println("银行卡管理系统");
|
System.out.println("1.开卡");
|
System.out.println("2.存款");
|
System.out.println("3.取款");
|
System.out.println("4.查询余额");
|
System.out.println("0.退出系统");
|
System.out.println("请输入:");
|
System.out.println("请输入开卡类型:\n1.储蓄卡\n2.信用卡");
|
System.out.println("您已开通储蓄卡!");
|
System.out.println("您已开通信用卡!");
|
System.out.println("非法输入。");
|
System.out.println("请输入存款金额:");
|
card0.saveMoney(scan1.nextDouble());
|
System.out.println("请输入取款金额:");
|
card0.takeMoney(scan2.nextDouble());
|
System.out.println("账户余额为:"+card0.getBalance());
|
System.out.println("非法输入。");
|