1、List List接口是Collection的子接口,List是一个可重复集合2、ArrayList和LinkedList ArrayList和LinkedList是List接口最常见的两个实现类,分别用动态数组和链表的方式实现了List接口。3、get与set方法 List除了继承Col...
分类:
其他好文 时间:
2015-06-27 11:25:49
阅读次数:
111
前不久面试官让我说一下怎么理解java数据结构框架,之前也看过部分源码,balabala讲了一堆,现在总结一下。java.util包中三个重要的接口及特点:List(列表)、Set(保证集合中元素唯一)、Map(维护多个key-value键值对,保证key唯一)。其不同子类的实现各有差异,如是否同步(线程安全)、是否有序。
常用类继承树:
以下结合源码讲解常用类实现原理及相互之间的差异。
Col...
分类:
编程语言 时间:
2015-06-26 23:49:12
阅读次数:
291
1.分析表与索引(analyze 不会重建索引)analyze table tablename compute statistics等同于 analyze table tablename compute statistics for table for all indexes for all col...
分类:
数据库 时间:
2015-06-26 19:45:53
阅读次数:
114
package com.billstudy.mr.friends;
import java.io.IOException;
import java.util.Arrays;
import java.util.concurrent.TimeUnit;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs....
分类:
其他好文 时间:
2015-06-26 09:21:03
阅读次数:
107
原文标题:Is Apple Watch Getting Closer to Our Hearts?Tim Cook, the CEO of Apple, showed off their newest device, the Apple Watch. Mr. Cook said it is the ...
分类:
移动开发 时间:
2015-06-26 06:51:15
阅读次数:
149
资料上和以前学习的SQL语言,往数据库里面插入数据语句是这样的INSERT INTO test_table (clo_1, col_2) VALUES("this is value of col_1", "this is value of col_2")但是这样折腾了一下午,愣是没有成功,也找不到原...
分类:
数据库 时间:
2015-06-26 00:10:43
阅读次数:
221
顺序打印矩阵思路参考代码#include using namespace std;void printNumAsClockwise(int a[][4], int row, int col){ if (row = left; --i) cout = up; --i) ...
分类:
其他好文 时间:
2015-06-25 19:07:17
阅读次数:
117
在MySQL中,InnoDB引擎类型的表支持了外键约束。? [CONSTRAINT?symbol]?FOREIGN?KEY?[id]?(index_col_name,?…)
REFERENCES?tbl_name?(index_col_name,?…)
[ON?DELETE?{RESTRICT?|?CASCADE?|?S...
分类:
数据库 时间:
2015-06-25 17:51:10
阅读次数:
194
Problem Description
After coding so many days,Mr Acmer wants to have a good rest.So travelling is the best choice!He has decided to visit n cities(he insists on seeing all the cities!And he does no...
分类:
其他好文 时间:
2015-06-22 16:26:38
阅读次数:
137
insert的语法INSERT [LOW_PRIORITY | DELAYED | HIGH_PRIORITY] [IGNORE] [INTO] tbl_name [(col_name,...)] VALUES ({expr | DEFAULT},...),(...),... [ ...
分类:
数据库 时间:
2015-06-21 22:17:07
阅读次数:
245