2019年7月30日

摘要: package com.day14; import java.util.Scanner; public class Demo04 { /** * 验证注册信息 * @return flag 验证信息 */ public boolean verify(String name,String pwd1,Str... 阅读全文
posted @ 2019-07-30 23:27 不胖 阅读(138) 评论(0) 推荐(0) 编辑

2019年7月29日

摘要: package com.day14; public class Demo01 { public static char[] demo01(){ int i = 1234567890; String s ="qwertyuiopasdfghjklzxcvbnm"; String S=s.toUpperCase(); Stri... 阅读全文
posted @ 2019-07-29 17:15 不胖 阅读(134) 评论(0) 推荐(0) 编辑
 
摘要: package com.day13; public class Student { private String name; private String sex; public Student(){} public Student(String name,String sex){ this.name = name; this.... 阅读全文
posted @ 2019-07-29 10:31 不胖 阅读(119) 评论(0) 推荐(0) 编辑

2019年7月25日

摘要: 2. 阅读全文
posted @ 2019-07-25 00:43 不胖 阅读(106) 评论(0) 推荐(0) 编辑

2019年7月21日

摘要: 转载自:https://www.cnblogs.com/jiangbei/p/6910790.html 1) Open-Close Principle(OCP),开-闭原则, 讲的是设计要对扩展有好的支持,而对修改要严格限制。这是最重要也是最为抽象的原则,基本上我们所说的Reusable Softw 阅读全文
posted @ 2019-07-21 18:20 不胖 阅读(200) 评论(0) 推荐(0) 编辑
 
摘要: package com.day10; public interface Cpu { public String Pingpai(); public String ZhuPin(); } package com.day10; public class CpuType implements Cpu { public String Pingpai(){ ... 阅读全文
posted @ 2019-07-21 18:17 不胖 阅读(209) 评论(0) 推荐(0) 编辑
 
摘要: package com.day09; public abstract class HandSet { private String brand; private String type; public HandSet(){} public HandSet(String brand,String type){ this.brand = brand... 阅读全文
posted @ 2019-07-21 17:26 不胖 阅读(112) 评论(0) 推荐(0) 编辑

2019年7月17日

摘要: Java中的静态内部类:在定义的内部类前加static修饰符,此时的内部类就是静态内部类。通过一个例子来了解静态内部类都有哪些特点。 总结:1、静态内部类中可以写哪些内容 1)匿名代码块 2)静态代码块 3)静态变量和非静态变量 4)静态方法和非静态方法 注意:不能在静态内部类中写抽象方法 2、外部 阅读全文
posted @ 2019-07-17 10:59 不胖 阅读(232) 评论(0) 推荐(0) 编辑

2019年7月4日

摘要: package day06; import java.util.*; public class Demo1 { public static void main(String[] args) { String[] dishNames = {"红烧带鱼","鱼香肉丝","时令蔬菜"};//菜品名称 double[] prices = new double[] ... 阅读全文
posted @ 2019-07-04 22:32 不胖 阅读(452) 评论(0) 推荐(0) 编辑
 
摘要: 1. 2. 3. 4. 阅读全文
posted @ 2019-07-04 22:25 不胖 阅读(128) 评论(0) 推荐(0) 编辑