![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java
文章平均质量分 71
psyixiao
这个作者很懒,什么都没留下…
展开
-
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 · 1022 阅读 · 0 评论 -
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 · 2761 阅读 · 0 评论 -
大整数的基本处理和求两两互素的数组
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 · 607 阅读 · 0 评论 -
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 · 368 阅读 · 0 评论 -
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 · 323 阅读 · 0 评论 -
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 · 876 阅读 · 0 评论 -
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 · 516 阅读 · 0 评论 -
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 · 2803 阅读 · 1 评论 -
分页时封装好的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 · 669 阅读 · 0 评论