抽象类和接口 不同点: 1)接口只有定义,其方法不能再接口中实现,只有实现接口的类才能实现接口中定义的方法,而抽象类的方法可以再抽象类中被实现。 2)接口需要用implements实现,抽象类只能被继承(extends) 3)多个与单个的区别 4)接口中定义的成员变量默认修饰符为public sta ...
分类:
其他好文 时间:
2020-08-21 16:41:41
阅读次数:
156
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title> <style> *{ margin:0; padding:0; } html,body{ height: 100%; overflow: ...
分类:
其他好文 时间:
2020-08-20 19:22:33
阅读次数:
91
前言 本文收录于专辑:http://dwz.win/HjK,点击解锁更多数据结构与算法的知识。 你好,我是彤哥,一个每天爬二十六层楼还不忘读源码的硬核男人。 上一节,我们使用位图介绍了12306抢票算法的实现,没有收到推送的同学可以点击上方专辑查看,或者在公主号历史消息中查看。 在上一节的最后,彤哥 ...
分类:
其他好文 时间:
2020-08-13 12:26:30
阅读次数:
49
基础题 n 练习一:Pedicate接口使用 请在测试类main方法中完成以下需求 已知有Integer[] arr = {-12345, 9999, 520, 0,-38,-7758520,941213} a) 使用lambda表达式创建Predicate对象p1,p1能判断整数是否是自然数(大于 ...
分类:
其他好文 时间:
2020-08-11 15:55:26
阅读次数:
68
public class MinStack { /** initialize your data structure here. */ Stack<Integer> stack = new Stack<>(); private int min = Integer.MIN_VALUE; List<In ...
分类:
其他好文 时间:
2020-08-10 22:08:46
阅读次数:
86
外键 foreign key 创建外键 CREATE TABLE products ( product_no integer PRIMARY KEY, name text,); #demo1CREATE TABLE orders ( order_id integer PRIMARY KEY, pro ...
分类:
其他好文 时间:
2020-08-08 17:42:34
阅读次数:
86
首先从ES的支持的字段说起,ES文档中字段有多种类型 官方文档。 这几个比较常用: text,keyword,integer,float,boolean,object,geo_point(地理坐标),geo_shape(描述地理区域),date. 注:不要以为date只能表示 2015-01-01 ...
分类:
其他好文 时间:
2020-08-07 18:08:11
阅读次数:
84
procedure TfrmUnionShipMent.dgMainTitleBtnClick(Sender: TObject; ACol: Integer; Column: TColumnEh);VAR INDEX : INTEGER; SortString : String; FirstFlag ...
分类:
数据库 时间:
2020-08-07 12:35:31
阅读次数:
90
import java.util.Stack; public class CQueue { Stack<Integer> stack1 = new Stack<>(); Stack<Integer> stack2 = new Stack<>(); public CQueue() { } public ...
分类:
其他好文 时间:
2020-08-07 12:30:51
阅读次数:
63