JavaSE进阶

发布时间:2018年11月19日作者:yafei浏览次数:684

8、把Data.java复制到项目中

把Data.java使用记事本打开复制到com.atguigu.service.Data类中,这样复制不会有乱码,注意包package的声明是否正确。

package com.atguigu.service;

 

public class Data {

    public static final int EMPLOYEE = 10;

    public static final int PROGRAMMER = 11;

    public static final int DESIGNER = 12;

    public static final int ARCHITECT = 13;

 

    public static final int PC = 21;

    public static final int NOTEBOOK = 22;

    public static final int PRINTER = 23;

 

    //Employee  :  10, id, name, age, salary

    //Programmer:  11, id, name, age, salary

    //Designer  :  12, id, name, age, salary, bonus

    //Architect :  13, id, name, age, salary, bonus, stock

    public static final String[][] EMPLOYEES = {

        {“10”, “1”, “段誉”, “22”, “3000”},

        {“13”, “2”, “令狐冲”, “32”, “18000”, “15000”, “2000”},

        {“11”, “3”, “任我行”, “23”, “7000”},

        {“11”, “4”, “张三丰”, “24”, “7300”},

        {“12”, “5”, “周芷若”, “28”, “10000”, “5000”},

        {“11”, “6”, “赵敏”, “22”, “6800”},

        {“12”, “7”, “张无忌”, “29”, “10800”,”5200″},

        {“13”, “8”, “韦小宝”, “30”, “19800”, “15000”, “2500”},

        {“12”, “9”, “杨过”, “26”, “9800”, “5500”},

        {“11”, “10”, “小龙女”, “21”, “6600”},

        {“11”, “11”, “郭靖”, “25”, “7100”},

        {“12”, “12”, “黄蓉”, “27”, “9600”, “4800”}

    };

 

    //PC      :21, model, display

    //NoteBook:22, model, price

    //Printer :23, type, name

    public static final String[][] EQIPMENTS = {

        {},

        {“22”, “联想Y5”, “6000”},

        {“21”, “宏碁 “, “AT7-N52”},

        {“21”, “戴尔”, “3800-R33”},

        {“23”, “激光”, “佳能 2900”},

        {“21”, “华硕”, “K30BD-21寸”},

        {“21”, “海尔”, “18-511X 19”},

        {“23”, “针式”, “爱普生20K”},

        {“22”, “惠普m6”, “5800”},

        {“21”, “联想”, “ThinkCentre”},

        {“21”, “华硕”,”KBD-A54M5 “},

        {“22”, “惠普m6”, “5800”}

    };

}

 

 


上一篇:
下一篇:
相关课程

java培训 大数据培训 前端培训 UI/UE设计培训

关于尚硅谷
教育理念
名师团队
学员心声
资源下载
视频下载
资料下载
工具下载
加入我们
招聘岗位
岗位介绍
招贤纳师
联系我们
全国统一咨询电话:010-56253825
地址:北京市昌平区宏福科技园2号楼3层(北京校区)

深圳市宝安区西部硅谷大厦B座C区一层(深圳校区)

上海市松江区谷阳北路166号大江商厦6层(上海校区)

武汉市东湖高新开发区东湖网谷(武汉校区)