上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 114 下一页
摘要: VideoOrder.java 重写里面的equals和hashCode方法 class VideoOrder { private int price; private String title; public VideoOrder(String title, int price) { this.t 阅读全文
posted @ 2020-07-31 22:45 陈彦斌 阅读(327) 评论(0) 推荐(0) 编辑
摘要: public static void main(String[] args) { // 1、字符串 String str = "*Constructs a new <tt>HashMap</tt> with the same mappings as the * specified <tt>Map</ 阅读全文
posted @ 2020-07-31 22:33 陈彦斌 阅读(454) 评论(0) 推荐(0) 编辑
摘要: 导读 Mysql数据类型,点我直达 创建表 语法: create table 表名( 字段名1 字段类型2 约束条件1 说明1, 字段名2 字段类型2 约束条件2 说明2 ) 约束条件: comment 说明解释 not null 不为空 default 默认值 unsigned 无符号(即正数) 阅读全文
posted @ 2020-07-31 12:03 陈彦斌 阅读(558) 评论(0) 推荐(0) 编辑
摘要: Objects工具类 jdk 1.7引进的工具类,都是静态调用的方法,jdk 1.8新增了部分方法 重点方法 equals 用于字符串和包装对象的比较,先比较内存地址,再比较值 deepEquals 数组的比较,先比较内存地址,再比较值,如String、char、byte、int数组,或者包装类型I 阅读全文
posted @ 2020-07-30 23:28 陈彦斌 阅读(390) 评论(0) 推荐(0) 编辑
摘要: 什么是Comparable public interface Comparable<T> { /** * Compares this object with the specified object for order. Returns a * negative integer, zero, or 阅读全文
posted @ 2020-07-30 23:05 陈彦斌 阅读(293) 评论(0) 推荐(0) 编辑
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 114 下一页