打字猴:1.700482415e+09
1700482415 System.out.print(”\n是否需要退出?(Y/N)”);
1700482416
1700482417 if(getInput().equalsIgnoreCase(“y”)){
1700482418
1700482419 flag=false;//退出
1700482420
1700482421 }
1700482422
1700482423 }
1700482424
1700482425 }
1700482426
1700482427 //初始化一个IC卡
1700482428
1700482429 private static Card initIC(){
1700482430
1700482431 Card card=new Card();
1700482432
1700482433 card.setCardNo(“1100010001000”);
1700482434
1700482435 card.setFreeMoney(100000);//1000元
1700482436
1700482437 card.setSteadyMoney(80000);//800元
1700482438
1700482439 return card;
1700482440
1700482441 }
1700482442
1700482443 //产生一条交易
1700482444
1700482445 private static Trade createTrade(){
1700482446
1700482447 Trade trade=new Trade();
1700482448
1700482449 System.out.print(“请输入交易编号:”);
1700482450
1700482451 trade.setTradeNo(getInput());
1700482452
1700482453 System.out.print(“请输入交易金额:”);
1700482454
1700482455 trade.setAmount(Integer.parseInt(getInput()));
1700482456
1700482457 //返回交易
1700482458
1700482459 return trade;
1700482460
1700482461 }
1700482462
1700482463 //打印出当前卡内交易余额
1700482464
[ 上一页 ]  [ :1.700482415e+09 ]  [ 下一页 ]