摘要: package com.chen; //菜单类 public class Menu { // 属性 序号 菜品名 单价 点赞数 private int num; private String name; private double price; private int zan; public int getNum() { return num; } public... 阅读全文
posted @ 2019-07-30 11:25 AxeBurner 阅读(369) 评论(0) 推荐(0) 编辑
摘要: package Thread; import java.util.Scanner; public class Integer { static Scanner sc = new Scanner(System.in); //判断是否为整数(要求输入必须为整数 不是则会提示 而不是直接报错) public static void doint() { ... 阅读全文
posted @ 2019-07-27 18:46 AxeBurner 阅读(459) 评论(0) 推荐(1) 编辑
摘要: package DemoMap; public class User { private String id; private String password; public User() { super(); } public User(String id, String password) ... 阅读全文
posted @ 2019-07-27 14:32 AxeBurner 阅读(196) 评论(0) 推荐(0) 编辑
摘要: package com.chen; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; //学员管理系统 public class StudentSys { public static void main(Stri... 阅读全文
posted @ 2019-07-27 14:21 AxeBurner 阅读(101) 评论(0) 推荐(0) 编辑
摘要: package Exception; public class AgeException extends Exception{ public AgeException(String message) { super(message); } } package Exception; public cl 阅读全文
posted @ 2019-07-27 10:03 AxeBurner 阅读(139) 评论(0) 推荐(0) 编辑
摘要: package Exception; public class Demo04 { private int age; public int getAge() { return age; } public void setAge(int age) throws AgeException{ if(age>=1&&... 阅读全文
posted @ 2019-07-22 17:13 AxeBurner 阅读(80) 评论(0) 推荐(0) 编辑
摘要: package Exception; import java.util.InputMismatchException; import java.util.Scanner; public class Demo03 { static Scanner sc = new Scanner(System.in); public static void main(String[... 阅读全文
posted @ 2019-07-22 15:57 AxeBurner 阅读(103) 评论(0) 推荐(0) 编辑
摘要: //实现显示CUP内存的功能 package zuoye03; public interface CPU { public String pingPai(); public String zhuPing(); } //实现显示内存的功能 package zuoye03; public interface Neicun { public... 阅读全文
posted @ 2019-07-19 21:43 AxeBurner 阅读(213) 评论(0) 推荐(0) 编辑
摘要: package zuoye01; public interface Color { public String caiShe(); } package zuoye01; public interface HeiBai { public String heiBai(); } package zuoye01; public class Int_Color ... 阅读全文
posted @ 2019-07-19 17:38 AxeBurner 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 恢复内容开始 //父类package zuoye; public abstract class Phone { // 属性 品牌 类型 private String pinpai; private String leiXin; public String getPinpai() { return p 阅读全文
posted @ 2019-07-19 15:50 AxeBurner 阅读(166) 评论(0) 推荐(0) 编辑