资源简介

java 我行我素购物管理系统源码 适合初学者学习java控制台程序

资源截图

代码片段和文件信息

import java.util.*;
public class AddCust {
public static void main(String[] args){
System.out.println(“我行我素购物管理系统 > 客户信息管理 > 添加客户信息\n“);
//录入会员信息
Scanner input = new Scanner(System.in);
System.out.print(“请输入会员号(<4位整数>):“);//提示输入4位会员号
int custNo = input.nextInt();//从键盘输入会员号,存储在变量custNo中
System.out.print(“请输入会员生日(月/日<用两位数表示>):“);
String custBirth = input.next();
System.out.print(“请输入积分:“);
int custScore = input.nextInt();

//显示录入的信息
/*判断会员号有效性*/
if(custNo>=1000&&custNo<=9999){
System.out.println(“\n已录入的会员信息是:“);
System.out.println(custNo+“\t“+custBirth+“\t“+custScore);
}else{
System.out.println(“\n客户号“+custNo+“是无效会员!“);
System.out.println(“录入信息失败!“);
}
}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        232  2010-09-16 14:11  ShopManagementSystem\.classpath

     文件        396  2010-09-16 14:11  ShopManagementSystem\.project

     文件       1570  2010-09-26 15:44  ShopManagementSystem\bin\AddCust.class

     文件       1335  2010-09-26 15:44  ShopManagementSystem\bin\Avg.class

     文件       1856  2010-09-26 15:44  ShopManagementSystem\bin\CustMMenu.class

     文件       1520  2010-09-26 15:44  ShopManagementSystem\bin\GoodLuck.class

     文件       1303  2010-09-26 15:44  ShopManagementSystem\bin\ji320.class

     文件       1199  2010-09-26 15:44  ShopManagementSystem\bin\Liaotian.class

     文件        570  2010-09-26 15:44  ShopManagementSystem\bin\LoginMenu1.class

     文件        680  2010-09-26 15:44  ShopManagementSystem\bin\LoginMenu2.class

     文件        797  2010-09-26 15:44  ShopManagementSystem\bin\LoginMenu3.class

     文件       1388  2010-09-26 15:44  ShopManagementSystem\bin\LoginMenu33.class

     文件       1427  2010-09-26 08:55  ShopManagementSystem\bin\LoginMenu330.class

     文件       1028  2010-09-26 15:44  ShopManagementSystem\bin\LoginMenu34.class

     文件       1065  2010-09-26 08:55  ShopManagementSystem\bin\LoginMenu340.class

     文件        896  2010-09-26 15:44  ShopManagementSystem\bin\LoginMenu41.class

     文件        962  2010-09-26 15:44  ShopManagementSystem\bin\LoginMenu42.class

     文件       1844  2010-09-26 15:44  ShopManagementSystem\bin\LookPrice.class

     文件       1551  2010-09-26 15:44  ShopManagementSystem\bin\MainMenu.class

     文件       2432  2010-09-26 15:44  ShopManagementSystem\bin\Pay.class

     文件        962  2010-09-26 15:44  ShopManagementSystem\bin\Pay1.class

     文件       1615  2010-09-26 15:44  ShopManagementSystem\bin\Pay2.class

     文件       1056  2010-09-26 15:44  ShopManagementSystem\bin\Pay4.class

     文件       1408  2010-09-26 15:44  ShopManagementSystem\bin\SendGiftMenu.class

     文件       1420  2010-09-26 15:44  ShopManagementSystem\bin\ShangJiZuoYe31.class

     文件       1459  2010-09-26 08:55  ShopManagementSystem\bin\ShangJiZuoYe310.class

     文件        762  2010-09-26 15:44  ShopManagementSystem\bin\Test.class

     文件        858  2010-09-21 13:58  ShopManagementSystem\src\AddCust.java

     文件        578  2010-09-26 14:16  ShopManagementSystem\src\Avg.java

     文件       1538  2010-10-03 16:52  ShopManagementSystem\src\CustMMenu.java

............此处省略28个文件信息

评论

共有 条评论