思路分析 1、会员类Member (1)姓名 name:String (2)卡号 cardId:int (3)密码 password:String (4)积分 score:int (5)开卡日期 registDate:String 2、会员管理类 (1)所有会员(卡)--集合:List ArrayList<Member> (2)程序整体流程搭建的方法 循环 分支 (3)验证会员是否存在的方法 集合的遍历,集合元素的查找 (4)系统随机生成会员卡号的方法 Random类 A:开卡 输入会员信息(会员卡密码的验证--String类相应方法-循环) 姓名、密码 卡号:系统随机生成会员卡号的方法 积分:系统默认100 开卡日期:日期时间操作(Date类、SimpleDateFormat类) 将注册成功的会员添加进集合(ArrayList add()) B:修改密码 验证会员是否存在 会员对象密码属性重新赋值 C:积分累计 验证会员是否存在 会员对象积分属性重新赋值 D:积分兑换 验证会员是否存在 会员积分兑换过程(根据相应规则) E:查询剩余积分 验证会员是否存在...
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Get in touch with int
Contact int, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack