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
资料上和以前学习的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
insert的语法INSERT [LOW_PRIORITY | DELAYED | HIGH_PRIORITY] [IGNORE] [INTO] tbl_name [(col_name,...)] VALUES ({expr | DEFAULT},...),(...),... [ ...
分类:
数据库 时间:
2015-06-21 22:17:07
阅读次数:
245
jquery获取select选中的值: $(‘#brand‘).change(function(){
var?brand=$("#brand??option:selected").val();
alert(brand);
}); <div?class="col-sm-8?col-xs-12">
<select?name="brand"?id="brand"?c...
分类:
Web程序 时间:
2015-06-21 21:12:04
阅读次数:
165
#include
#include
using namespace std;
typedef struct{
int row;
int col;
}Node;
int n;
int sx,sy;//start node
int ex,ey;//end node
int map[200][200];//mark array
int a[8][2] = {{1,2},{2,1...
分类:
其他好文 时间:
2015-06-20 15:46:26
阅读次数:
106
最近接触了kendoUI的使用,在项目中边学习边使用,为了以后可以再用到便小记一下(这里用的都是针对asp.net MVC,其实用我觉得用js的方法更灵活,不过MVC更简洁)
1.最常用的估计就是grid的使用了。从项目中找个比较有代表性的。
@(Html.Kendo().Grid
().Name("DocumentGrid")
.Columns(col...
分类:
其他好文 时间:
2015-06-17 21:51:24
阅读次数:
1618