- 博客(16)
- 资源 (8)
- 收藏
- 关注
转载 数据结构中的排序算法
近期看了下数据结构,顺便查看了里面一些排序算法的实现,下面是转载别人的,我也都实现了下,有很多的方法可以单独成一个工具类,但为了简单就重复了,包涵!package sort;public class ShellSort { /** * Shell排序是不稳定的,它的空间开销也是O(1),时间开销估计在O(N3/2)~O(N7/6)之间 * 和直接插入法比较,会发现其与直
2012-08-13 11:42:30
572
原创 分页时封装好的page的使用
首先自己定义标签命名为nsc.tld:内容如下http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2eehttp://java.sun.com/xml/ns/j2ee/w
2012-07-05 15:52:59
705
原创 Spring+webservice的整合
首先在一个logicContext.xml中进行如下配置http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans
2012-07-04 17:36:21
2859
1
转载 httpclient下载文件
package self;import java.io.DataOutputStream;import java.io.File;import java.io.FileOutputStream;import java.io.IOException;import java.util.List;import java.util.regex.Matcher;import ja
2012-06-10 17:08:48
2058
原创 httpclient模拟登陆的学习
package com.ncs.blog.test;import java.io.DataOutputStream;import java.io.FileOutputStream;import java.io.IOException;import java.io.UnsupportedEncodingException;import java.net.URISyntaxExce
2012-06-10 16:59:50
1235
原创 使用htmlParser如何设定超时timeout
最近在使用htmlParser解析网页时,发现有卡在那不解析的现象,如是设置的timeout如下结果这种设置并不管用。Parser parser = new Parser(url);parser.getConnection().setConnectTimeout(500);parser.getConnection().setReadTimeout(500);经过查询发现应该这样
2012-06-07 15:48:23
2123
原创 CountDownLatch 控制多线程 让多个线程执行完后再依次做其他的
package com.ps;import java.util.concurrent.CountDownLatch;public class TestRunnable implements Runnable{ private int tickets = 100; String s = new String(" "); CountDownLatch cdl = new Coun
2012-05-31 21:57:09
566
原创 MD5在跨平台时保持值一样
import java.security.MessageDigest;public class MD5Util { private final static String[] hexDigits = { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e"
2012-05-28 09:47:51
962
原创 break与continue区别
package com.ps;public class TestDb { public static void main(String[] args) { System.out.println("第一次输出"); for(int i=0;i if(i==5) continue; System.out.print(i); } System.out.pr
2012-04-23 14:40:40
356
原创 Java读配置文件方法
import java.io.IOException;import java.io.InputStream;import java.util.Properties;public class TestDb { /** * 文件名称为pp.properties,下面是配置文件的类容,将文件放在项目的src目录下 * max=10 * hahha=01214
2012-04-23 10:43:25
401
原创 大整数的基本处理和求两两互素的数组
package com.ps.test;import java.math.BigInteger;import java.util.ArrayList;import java.util.List;public class Tobinary { @SuppressWarnings("unused") public static void main(String[] args)
2012-04-18 14:26:47
654
转载 Java处理两个大数相乘
package com.ps.test;import java.util.Scanner; public class bigNumMultiply { /** * 实现两个大数相乘 * @param args */ public static final int MAX_LEN = 100
2012-04-18 12:37:37
2807
原创 java 调用自己写好的jar的方法
package com.ps.test;import java.io.IOException;public class TestJar { /** * @param args * java 调用自己写好的jar的方法 */ public static void main(String[] args) { try { String[] strUpIp
2012-04-12 13:30:34
1072
转载 Httpclient和htmlparser使用
只是希望能记住这些简单的用法 http://endual.iteye.com/blog/1397425
2012-04-10 12:55:36
443
转载 htmlparser过滤关键字
import org.htmlparser.Node;import org.htmlparser.Parser;import org.htmlparser.util.NodeList;import org.htmlparser.util.ParserException;import org.htmlparser.util.SimpleNodeIterator;public cl
2012-04-10 12:53:13
571
原创 Java将byte转换成图片并保存在本地
import java.io.File;import java.io.FileOutputStream;import java.io.OutputStream;import org.apache.commons.httpclient.HttpClient;import org.apache.commons.httpclient.methods.GetMethod;public
2012-04-10 12:35:58
8767
python_Excel安裝包xlrd_xlwt_xlutils.rar
2011-08-16
hibernate-distribution-3.3.2.GA.rar
2011-08-10
Hibernate3.0完整中文版教程.pdf
2011-08-05
hibernate-annotations-3.4.0.GA.zip
2011-07-31
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人