摘要: import java.util.Stack;public class StringReverse { public static String reverse1(String s) { int length = s.length(); if (length = 0; i--) revers... 阅读全文
posted @ 2014-07-24 12:37 回车桌面 阅读(326) 评论(0) 推荐(0)
摘要: package singleton; * @author lei * 单例模式的五种写法: * 1、懒汉 * 2、恶汉 * 3、静态内部类 * 4、枚举 * 5、双重校验锁 * 2011-9-6 *五、 双重校验锁,在当前的内存模型中无效class LockSingleton{ private... 阅读全文
posted @ 2014-07-24 10:50 回车桌面 阅读(173) 评论(0) 推荐(0)
摘要: 1.// The current date and timeLocalDateTime.now();// construct from valuesLocalDate.of(2012, 12, 12);LocalDate.of(2012, Month.DECEMBER, 12);// Somewhe... 阅读全文
posted @ 2014-07-23 16:13 回车桌面 阅读(257) 评论(0) 推荐(0)
摘要: import java.util.ArrayList;import java.util.List;import java.util.concurrent.Callable;import java.util.concurrent.ExecutionException;import java.util.... 阅读全文
posted @ 2014-07-23 15:23 回车桌面 阅读(140) 评论(0) 推荐(0)
摘要: import java.awt.Color;import java.awt.image.BufferedImage;import java.io.IOException;import org.apache.commons.logging.Log;import org.apache.commons.l... 阅读全文
posted @ 2014-07-23 13:04 回车桌面 阅读(200) 评论(0) 推荐(0)
摘要: import java.util.Properties;import javax.mail.Authenticator;import javax.mail.Message;import javax.mail.MessagingException;import javax.mail.PasswordA... 阅读全文
posted @ 2014-07-23 11:28 回车桌面 阅读(164) 评论(0) 推荐(0)
摘要: *Author:Yuanhonglong *Date:2013-12-20 *1948281915 */package mine.algorithm.key.Des_Rsa; import java.io.File;import java.io.FileOutputStream;import ja... 阅读全文
posted @ 2014-07-22 17:50 回车桌面 阅读(178) 评论(0) 推荐(0)
摘要: import java.io.BufferedReader;import java.io.File;import java.io.FileInputStream;import java.io.FileNotFoundException;import java.io.FileReader;import... 阅读全文
posted @ 2014-07-22 17:36 回车桌面 阅读(136) 评论(0) 推荐(0)
摘要: package sortAlgorithm;import java.io.File;import java.io.IOException;import java.sql.Time;import java.util.Random; * @author sky * 该类给出各种排序算法public cl... 阅读全文
posted @ 2014-07-21 16:25 回车桌面 阅读(295) 评论(0) 推荐(0)
摘要: import java.util.Stack;public class StringReverse { public static String reverse1(String s) { int length = s.length(); if (length = 0; i--) reve... 阅读全文
posted @ 2014-07-21 15:39 回车桌面 阅读(164) 评论(0) 推荐(0)