JAVA
文章平均质量分 76
steffen2008
If you fail, dont forget to learn your lesson;
如果你失败了,千万别忘了汲取教训;
Whenever you find your wrongdoing, be quick with reparation!
无论何时你发现自己做错了,竭尽所能去弥补;动作要快!
Do the thing you should do;
做自己该做的事;
展开
-
Java 对象序列化和反序化例子
public static void writeObject(Object o){ File file = new File("d:","user.tmp"); if(file.exists()){ file.delete(); } FileOutputStream fos; try { fos = new FileOutputStream(file); // Obj原创 2009-12-08 09:32:00 · 511 阅读 · 0 评论 -
List、map结合查询一对多的所有记录应用
/** * 查询所有记录 * @param request * @return */ @SuppressWarnings("unchecked") private ModelAndView showGrouplist(HttpServletRequest request) { Map model = new TreeMap(); List> IPGroupsMapList=ipdiv原创 2009-12-08 23:05:00 · 1362 阅读 · 0 评论 -
java 日期时间操作
/** * 从yyyy-MM-dd HH:mm:ss类型的字符串 获取Date类型的日期 * * @param text * 日期文本格式 * @return Date 日期信息 */ public static Date getDate(String text) { if(isEmpty(text)) {return null;}; SimpleDateF原创 2009-12-08 22:38:00 · 372 阅读 · 0 评论