1.下载mysql的jdbc驱动包。 http://dev.mysql.com/downloads/connector/ 2.获取连接。 public static Connection GetConnection() { Connection conn = null; try { Class.fo
分类:
数据库 时间:
2016-02-28 22:47:45
阅读次数:
234
publicclassBubbleSortDemo{
publicstaticvoidmain(String[]args){
int[]ints={5,9,6,4,3,5,8,1,2,4};
sort(ints);
for(inti:ints){
System.out.print(i+"");
}
}
publicstaticvoidsort(int[]array){
inttmp;
for(inti=array.length-1;i>=1;i--){
fo..
分类:
编程语言 时间:
2016-02-27 01:12:17
阅读次数:
173
While Immutable.js offers .is() to confirm value equality between iterables it comes at the cost of referencing each key and value in both objects. Fo
分类:
Web程序 时间:
2016-02-26 06:55:16
阅读次数:
149
一开始暴力解决,时间没通过 1 class Solution { 2 public: 3 int maxArea(vector<int>& height) { 4 int maxArea=0,eachArea=0; 5 if(height.size()<2) return maxArea; 6 fo
分类:
其他好文 时间:
2016-02-24 22:41:01
阅读次数:
241
jQuery 允许用户为任意 DOM 元素添加可拖放的功能,通过 jQuery 的拖放插件你可以轻松实现网页上任意元素的拖拽操作。在本文中我们向你推荐 30 个最棒的 jQuery 的拖放插件。 点击图片访问插件网站: 1. Dropper Dropper is a jQuery plugin fo
分类:
Web程序 时间:
2016-02-22 11:51:48
阅读次数:
215
主要介绍HTML中的事件知识:事件相关术语、DOM事件规范、事件对象。
1. 事件相关术语:介绍事件相关的术语;如:事件类型、事件名称、事件目标等等。
2. DOM事件规范:介绍W3C目前定义的三种DOM事件规范:0、2、3级。
3. 事件类型:介绍了HTML目前的事件类型;如:UIEvent、Fo...
分类:
Web程序 时间:
2016-02-19 15:53:07
阅读次数:
205
1. RequestDispatcher.forward() 是在服务器端起作用,当使用forward()时,Servlet engine传递HTTP请求从当前的Servlet or JSP到另外一个Servlet,JSP 或普通HTML文件,也即你的form提交至a.jsp,在a.jsp用到了fo
分类:
Web程序 时间:
2016-02-19 12:09:52
阅读次数:
172
最朴素的方法: #include<cstdio> int main(){ int a,maxn=-1,minn=32769; scanf("%d",&a); if (a%2==0) maxn=a/2; if (a%4==0) minn=a/4; for (int t=1;t<=a/4;t++) fo
分类:
其他好文 时间:
2016-02-16 15:01:26
阅读次数:
141
没有题面差评 先来遍SA求出h,再给h排序,从大到小计算,并查集维护连续的区间(表达能力太弱。。还是看代码好说话) 1 #include<bits/stdc++.h> 2 #define inc(i,l,r) for(int i=l;i<=r;i++) 3 #define dec(i,l,r) fo
分类:
其他好文 时间:
2016-02-11 23:50:12
阅读次数:
486
背景:上篇博文介绍了dcm4chee中使用的Leader/Follower线程池模型,主要目的是节省上下文切换,提高运行效率。本博文同属【DICOM开源库多线程分析】系列,着重介绍fo-dicom中使用的ThreadPoolQueue线程池。...
分类:
编程语言 时间:
2016-02-05 12:18:31
阅读次数:
367