摘要: Table: Teams + + +| Column Name | Type |+ + +| team_id | int || team_name | varchar |+ + +team_id is the primary key of this table.Each row of this ta 阅读全文
posted @ 2019-11-20 23:51 lihui1625 阅读(208) 评论(0) 推荐(0) 编辑
摘要: SQL架构 Transactions 记录表 + + + | Column Name | Type | + + + | id | int | | country | varchar | | state | enum | | amount | int | | trans_date | date | + 阅读全文
posted @ 2019-11-20 23:50 lihui1625 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 书籍表 Books: + + +| Column Name | Type |+ + +| book_id | int || name | varchar || available_from | date |+ + +book_id 是这个表的主键。订单表 Orders: + + +| Column 阅读全文
posted @ 2019-11-20 23:49 lihui1625 阅读(225) 评论(0) 推荐(0) 编辑
摘要: Table: Queue + + +| Column Name | Type |+ + +| person_id | int || person_name | varchar || weight | int || turn | int |+ + +person_id is the primary k 阅读全文
posted @ 2019-11-20 23:47 lihui1625 阅读(441) 评论(0) 推荐(0) 编辑
摘要: Employee 表保存了一年内的薪水信息。 请你编写 SQL 语句,来查询一个员工三个月内的累计薪水,但是不包括最近一个月的薪水。 结果请按 'Id' 升序,然后按 'Month' 降序显示。 示例:输入: | Id | Month | Salary || | | || 1 | 1 | 20 || 阅读全文
posted @ 2019-11-20 23:46 lihui1625 阅读(590) 评论(0) 推荐(0) 编辑
摘要: Table: Spending + + +| Column Name | Type |+ + +| user_id | int || spend_date | date || platform | enum | | amount | int |+ + +The table logs the spen 阅读全文
posted @ 2019-11-20 23:45 lihui1625 阅读(204) 评论(0) 推荐(0) 编辑
摘要: SQL架构 Table: Failed + + + | Column Name | Type | + + + | fail_date | date | + + + 该表主键为 fail_date。 该表包含失败任务的天数. Table: Succeeded + + + | Column Name | 阅读全文
posted @ 2019-11-20 23:44 lihui1625 阅读(417) 评论(0) 推荐(0) 编辑
摘要: SQL架构 Players 玩家表 + + + | Column Name | Type | + + + | player_id | int | | group_id | int | + + + 玩家 ID 是此表的主键。 此表的每一行表示每个玩家的组。 Matches 赛事表 + + + | Co 阅读全文
posted @ 2019-11-20 23:43 lihui1625 阅读(416) 评论(0) 推荐(0) 编辑
摘要: SQL架构 Activity 活动记录表 + + + | Column Name | Type | + + + | player_id | int | | device_id | int | | event_date | date | | games_played | int | + + + (pl 阅读全文
posted @ 2019-11-20 23:42 lihui1625 阅读(245) 评论(0) 推荐(0) 编辑
摘要: SQL架构 一所美国大学有来自亚洲、欧洲和美洲的学生,他们的地理信息存放在如下 student 表中。 | name | continent | | | | | Jack | America | | Pascal | Europe | | Xi | Asia | | Jane | America | 阅读全文
posted @ 2019-11-20 23:41 lihui1625 阅读(309) 评论(0) 推荐(0) 编辑
摘要: SQL架构 Numbers 表保存数字的值及其频率。 + + + | Number | Frequency | + + | | 0 | 7 | | 1 | 1 | | 2 | 3 | | 3 | 1 | + + + 在此表中,数字为 0, 0, 0, 0, 0, 0, 0, 1, 2, 2, 2, 阅读全文
posted @ 2019-11-20 23:40 lihui1625 阅读(918) 评论(0) 推荐(0) 编辑
摘要: SQL架构 Employee 表包含所有员工。Employee 表有三列:员工Id,公司名和薪水。 + + + + |Id | Company | Salary | + + + + |1 | A | 2341 | |2 | A | 341 | |3 | A | 15 | |4 | A | 15314 阅读全文
posted @ 2019-11-20 23:39 lihui1625 阅读(930) 评论(0) 推荐(0) 编辑
摘要: 实现一个拥有如下方法的线程安全有限阻塞队列: BoundedBlockingQueue(int capacity) 构造方法初始化队列,其中capacity代表队列长度上限。void enqueue(int element) 在队首增加一个element. 如果队列满,调用线程被阻塞直到队列非满。i 阅读全文
posted @ 2019-11-20 23:35 lihui1625 阅读(1219) 评论(0) 推荐(1) 编辑
摘要: 给你一个初始地址 startUrl 和一个 HTML 解析器接口 HtmlParser,请你实现一个 多线程的网页爬虫,用于获取与 startUrl 有 相同主机名 的所有链接。 以 任意 顺序返回爬虫获取的路径。 爬虫应该遵循: 从 startUrl 开始调用 HtmlParser.getUrls 阅读全文
posted @ 2019-11-20 23:34 lihui1625 阅读(1332) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/error_case/article/details/46503103Google首席Java架构师Joshua Bloch在他的著作《Effective Java》中提出了一种简单通用的hashCode算法:1. 初始化一个整形变量,为此变量赋予一个非零的... 阅读全文
posted @ 2015-10-28 17:02 lihui1625 阅读(496) 评论(0) 推荐(0) 编辑
摘要: 概要 这一章,我们对Iterator和Enumeration进行比较学习。内容包括: 第1部分 Iterator和Enumeration区别 第2部分 Iterator和Enumeration实例 转载请注明出处:http://www.cnblogs.com/skywang12345/admin/E 阅读全文
posted @ 2015-10-09 11:46 lihui1625 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 概要 这一章,我们对TreeSet进行学习。 我们先对TreeSet有个整体认识,然后再学习它的源码,最后再通过实例来学会使用TreeSet。内容包括: 第1部分 TreeSet介绍 第2部分 TreeSet数据结构 第3部分 TreeSet源码解析(基于JDK1.6.0_45) 第4部分 Tree 阅读全文
posted @ 2015-10-09 11:45 lihui1625 阅读(288) 评论(0) 推荐(0) 编辑
摘要: 概要 这一章,我们对HashSet进行学习。 我们先对HashSet有个整体认识,然后再学习它的源码,最后再通过实例来学会使用HashSet。内容包括: 第1部分 HashSet介绍 第2部分 HashSet数据结构 第3部分 HashSet源码解析(基于JDK1.6.0_45) 第4部分 Hash 阅读全文
posted @ 2015-10-09 11:44 lihui1625 阅读(233) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/skywang12345/p/3311136.html Java 集合系列15之 Set架构 前面,我们已经系统的对List和Map进行了学习。接下来,我们开始可以学习Set。相信经过Map的了解之后,学习Set会容易很多。毕竟,Set的实现类都是基于M 阅读全文
posted @ 2015-10-09 11:44 lihui1625 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 概要 学完了Map的全部内容,我们再回头开开Map的框架图。 本章内容包括: 第1部分 Map概括 第2部分 HashMap和Hashtable异同 第3部分 HashMap和WeakHashMap异同 转载请注明出处:http://www.cnblogs.com/skywang12345/admi 阅读全文
posted @ 2015-10-08 17:08 lihui1625 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 概要 这一章,我们对WeakHashMap进行学习。 我们先对WeakHashMap有个整体认识,然后再学习它的源码,最后再通过实例来学会使用WeakHashMap。 第1部分 WeakHashMap介绍 第2部分 WeakHashMap数据结构 第3部分 WeakHashMap源码解析(基于JDK 阅读全文
posted @ 2015-10-08 17:06 lihui1625 阅读(244) 评论(0) 推荐(0) 编辑
摘要: 概要 这一章,我们对TreeMap进行学习。 我们先对TreeMap有个整体认识,然后再学习它的源码,最后再通过实例来学会使用TreeMap。内容包括: 第1部分 TreeMap介绍 第2部分 TreeMap数据结构 第3部分 TreeMap源码解析(基于JDK1.6.0_45) 第4部分 Tree 阅读全文
posted @ 2015-10-08 17:05 lihui1625 阅读(397) 评论(0) 推荐(0) 编辑
摘要: 概要 前一章,我们学习了HashMap。这一章,我们对Hashtable进行学习。 我们先对Hashtable有个整体认识,然后再学习它的源码,最后再通过实例来学会使用Hashtable。 第1部分 Hashtable介绍 第2部分 Hashtable数据结构 第3部分 Hashtable源码解析( 阅读全文
posted @ 2015-10-08 17:01 lihui1625 阅读(273) 评论(0) 推荐(0) 编辑
摘要: 概要 这一章,我们对HashMap进行学习。 我们先对HashMap有个整体认识,然后再学习它的源码,最后再通过实例来学会使用HashMap。内容包括: 第1部分 HashMap介绍 第2部分 HashMap数据结构 第3部分 HashMap源码解析(基于JDK1.6.0_45) 第3.1部分 Ha 阅读全文
posted @ 2015-10-08 16:58 lihui1625 阅读(262) 评论(0) 推荐(0) 编辑
摘要: 概要 前面,我们已经系统的对List进行了学习。接下来,我们先学习Map,然后再学习Set;因为Set的实现类都是基于Map来实现的(如,HashSet是通过HashMap实现的,TreeSet是通过TreeMap实现的)。 首先,我们看看Map架构。 如上图: (01) Map 是映射接口,Map 阅读全文
posted @ 2015-10-08 16:53 lihui1625 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 概要 前面,我们学完了List的全部内容(ArrayList, LinkedList, Vector, Stack)。 Java 集合系列03之 ArrayList详细介绍(源码解析)和使用示例 Java 集合系列04之 fail-fast总结(通过ArrayList来说明fail-fast的原理、 阅读全文
posted @ 2015-10-08 16:52 lihui1625 阅读(273) 评论(0) 推荐(0) 编辑
摘要: 概要 学完Vector了之后,接下来我们开始学习Stack。Stack很简单,它继承于Vector。学习方式还是和之前一样,先对Stack有个整体认识,然后再学习它的源码;最后再通过实例来学会使用它。内容包括: 第1部分 Stack介绍 第2部分 Stack源码解析(基于JDK1.6.0_45) 第 阅读全文
posted @ 2015-10-08 16:50 lihui1625 阅读(185) 评论(0) 推荐(0) 编辑
摘要: Java 集合系列06之 Vector详细介绍(源码解析)和使用示例 概要 学完ArrayList和LinkedList之后,我们接着学习Vector。学习方式还是和之前一样,先对Vector有个整体认识,然后再学习它的源码;最后再通过实例来学会使用它。 第1部分 Vector介绍 第2部分 Vec 阅读全文
posted @ 2015-10-08 16:48 lihui1625 阅读(427) 评论(0) 推荐(0) 编辑
摘要: Java 集合系列05之 LinkedList详细介绍(源码解析)和使用示例 概要 前面,我们已经学习了ArrayList,并了解了fail-fast机制。这一章我们接着学习List的实现类——LinkedList。 和学习ArrayList一样,接下来呢,我们先对LinkedList有个整体认识, 阅读全文
posted @ 2015-10-08 16:46 lihui1625 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 概要 前面,我们已经学习了ArrayList。接下来,我们以ArrayList为例,对Iterator的fail-fast机制进行了解。内容包括:: 1 fail-fast简介 2 fail-fast示例 3 fail-fast解决办法 4 fail-fast原理 5 解决fail-fast的原理 阅读全文
posted @ 2015-10-08 16:45 lihui1625 阅读(234) 评论(0) 推荐(0) 编辑