下载此文档

java书店管理系统源代码.docx


文档分类:IT计算机 | 页数:约12页 举报非法文档有奖
1/12
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/12 下载此文档
文档列表 文档介绍
. . . .
Java 源代码
public class loaduser {
public String user ;
public String password;
boolean b1;
loaduser(String s1,String s2){
user =s1;
password=s2;
}
void load(){
System.
out .println(
"
书店管理销售系统 " );
System.
out .println(
"**************************************"
);
System.
out .println(
"
1
、登录系统 " );
System.
out .println(
"
2
、退出系统 " );
System.
out .println(
"**************************************"
);
System.
out .println(
" 请选择: " );
int m;
Scanner s=
new Scanner(System. in );
m=();
if (m==1){
for ( int
i=0;i<3;i++)
{
System.
out .println(
" 请输入账户名和密码 " );
String s3,s4;
Scanner ss= new Scanner(System. in );
s3=();
s4=();
if
( user .equals(s3)&&
(s4))
b1=true
;
else
b1=false
;
)System. out .println(
if (i==0&&b1==false
" 用户名或密码输入错误
一次,还有两次机会 !" );
)System. out .println(
if (i==1&&b1==false
" 用户名或密码输入错误
两次,还有一次机会 !" );
if
(i==2&& b1==false ){System. out .println(
" 三次输入错误,退出系
统 !" );System. exit (0);}
if ( b1==true )
{
System. out .println( " 登录成功! " );
.下载可编辑 .
. . . .
break ;
}
}
}
if (m==2)System. exit (0);
}
package manger;
import ;
import ;
public class vipmanger {
vipgroup =new ArrayList<vip>();
static
ArrayList<vip>
public
vipmanger(){
vipgroup
.add( new vip(
"001" , " 王芳 " ,100));
vipgroup
.add( new vip(
"002" , " 李娜 " ,60));
vipgroup
.add( new vip(
"003" , " 杨丽 " ,50));
vipgroup
.add( new vip(
"004" , " 孙洁 " ,150));
vipgroup
.add( new vip(
"005" , " 肖青 " ,300));
}
static
void
addd(){
System.
out .println(
" 请一次输入编号,姓名,积分 " );
String S1,S2;
int A;
new Sca

java书店管理系统源代码 来自淘豆网m.daumloan.com转载请标明出处.

非法内容举报中心
文档信息
  • 页数12
  • 收藏数0 收藏
  • 顶次数0
  • 上传人 fkh4608
  • 文件大小38 KB
  • 时间2021-11-17