![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JavaCore
macrotea
macrotea
展开
-
连接池实现方法学习
import java.sql.*; import java.lang.reflect.*; import java.util.*; import java.io.*; /** * 配合动态代理来学习 * 2010-12-13 */ public class SimpleConnetionPool { private static LinkedList m_not...原创 2010-12-13 12:02:57 · 53 阅读 · 0 评论 -
RuntimeException不需要捕获
public static int string2Int(String source) { if(source==null||source.trim().length()==0){ throw new RuntimeException("当string2Int时出错,source="+source); } return Integer.parseInt(source);...原创 2010-12-15 09:29:38 · 440 阅读 · 0 评论 -
Properties学习
public static void main(String[] args) throws IOException { //Properties 线程安全 Properties d = new Properties(); d.setProperty("age", "16"); d.setProperty("school", "hr"); Properties p = ...原创 2010-12-15 18:56:20 · 157 阅读 · 0 评论 -
jacksum 使用
Java加密 Microsoft Windows [版本 6.1.7600] 版权所有 (c) 2009 Microsoft Corporation。保留所有权利。 D:\OpenSources\Java>java -jar jacksum.jar -a sha -q "txt:123456" 7c4a8d09ca3762af61e59520943dc26494f8941b D:...原创 2011-10-25 23:05:37 · 275 阅读 · 0 评论 -
Java 数组,集合,list 互相转换
public static void main(String[] args) { //list转数组 List<String> list = new ArrayList<String>(); list.add("1"); list.add("2"); String[] arr = list.toArray(new String[list.siz...原创 2012-12-12 09:36:11 · 188 阅读 · 0 评论