(一)TreeMap TreeMap使用的是红黑树来实现的,所以重点是红黑树的插入和删除。 红黑树的3个特性: 根节点和所有外部节点的颜色都是黑色的; 从根节点到外部节点的途中没有连续两个节点的颜色是红色; 所有从根节点到外部节点的路径上都有相同数目的黑色节点。 下面来分析删除操作: 删除其实是非常 ...
分类:
编程语言 时间:
2016-06-08 12:28:19
阅读次数:
387
依赖jar包:Xml代码 收藏代码 <!-- redis --> <dependency> <groupId>org.springframework.data</groupId> <artifactId>spring-data-redis</artifactId> <version>1.3.4.RE ...
分类:
编程语言 时间:
2016-06-08 12:28:17
阅读次数:
639
深入浅出ECharts系列(二) 本次教程的目标是实现“折线图堆叠”折线,实现结果如图: 2. 准备工作 a) 首先下载ECharts插件,你可以根据自己的实际需求选择你想要下载的版本,也可以自己定制相应功能的版本,下面附上插件的下载地址: http://echarts.baidu.com/down ...
分类:
其他好文 时间:
2016-06-08 12:29:43
阅读次数:
134
1.字符串存入文件中,需要将字符串转化为字节后才能存入 ,存入字节时,字符串需要通过特定的编码规则编码后存入(常用编码规则:GBK(中文平台默认),uft-8,uft-16be) 一个字符串放入文本文件 》可以认为是字符串的序列化 2.从文本中读取字符串也需要相同的编码方式 从文本文件中读取字符串 ...
分类:
其他好文 时间:
2016-06-08 12:28:49
阅读次数:
216
CookieContainer cookies = new CookieContainer(); string url = "http://120.24.56.48:8889/api/auth/login?username=13590372650&password=wjkj110"; HttpWeb ...
一、请自己翻译下面这段文字,注意不要借鉴别人的结果或者试图从网上找译文,一定用自己的语言把这段文字体会一遍 Software engineers shall commit themselves to making the analysis, specification, design, develo ...
分类:
其他好文 时间:
2016-06-08 12:26:41
阅读次数:
129
SELECT a.tel,a.business_code,b.name AS business_name,a.register_time FROM T_RED_USER a LEFT JOIN T_Product_Spec b ON a.business_code=b.code where a.te ...
分类:
数据库 时间:
2016-06-08 12:28:40
阅读次数:
212
Toy Storage Description Mom and dad have a problem: their child, Reza, never puts his toys away when he is finished playing with them. They gave Reza ...
分类:
其他好文 时间:
2016-06-08 12:26:23
阅读次数:
169
本文是Linux Shell系列教程的第(八)篇,更多shell教程请看:Linux Shell系列教程 在上一篇:Linux Shell系列教程之(七)Shell输出这篇文章中,已经对Shell printf命令有了一个简略的介绍,本篇给大家详细介绍下Shell中的printf命令。 一、Shel ...
分类:
系统相关 时间:
2016-06-08 12:29:10
阅读次数:
250
原句,执行时间:2.78sUPDATE pro_ProductEvaluateSET hasPic = 1WHEREID IN (SELECTc.IDFROM(SELECTa.IDFROMpro_ProductEvaluate aINNER JOIN pro_ProductEvaluateImage ...
分类:
数据库 时间:
2016-06-08 12:28:32
阅读次数:
182
摘自:http://www.cnblogs.com/kaituorensheng/p/3776484.html 区别: String类是字符串常量,是不可更改的常量。而StringBuffer是字符串变量,它的对象是可以扩充和修改的。StringBuffer在进行 字符串处理时,不生成新的对象,在内 ...
分类:
其他好文 时间:
2016-06-08 12:26:35
阅读次数:
158
常用于model的操作,看看就知道了 使用json_encode将Model序列化为json 使用json_decode将json反序列化为model ...
分类:
Web程序 时间:
2016-06-08 12:25:34
阅读次数:
210
/// <summary> /// 向Url发送post请求 /// </summary> /// <param name="postData">发送数据</param> /// <param name="uriStr">接受数据的Url</param> /// <returns>返回网站响应请求的 ...
分类:
其他好文 时间:
2016-06-08 12:28:25
阅读次数:
137
UILabel *lab = [[UILabel alloc]initWithFrame:CGRectMake(100, 100, 100, 100)];// lab.layer.borderColor = [UIColor blueColor].CGColor;// lab.layer.borde ...
分类:
移动开发 时间:
2016-06-08 12:25:17
阅读次数:
212
<!--图表例子--> <!--/图表例子--> 1、清除图表的右下角水印及右上角菜单 credits: { enable:false }, exporting:{ enable:false; }, 2、将图表右侧标注 移动到图表正下方 ...
分类:
其他好文 时间:
2016-06-08 12:26:57
阅读次数:
131
tomcat7 Could not load the Tomcat server configuration at /Servers/Tomcat v7.0 Server at localhost-config. The configuration may be corrupt or incompl... ...
分类:
其他好文 时间:
2016-06-08 12:26:33
阅读次数:
266