
Java.Util
文章平均质量分 75
hi_beijing
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
properties的配置添加、删除、修改操作
public void saveProperties() { try { Properties properties = new Properties(); Properties p = new Properties(); File file = new File("F://test.properties"); p.load(new FileIn...原创 2012-01-06 13:26:42 · 709 阅读 · 0 评论 -
JAVA.UTIL日期格式
Date d = new Date(); Calendar ca = Calendar.getInstance(); ca.setTime(d); System.out.println(ca.get(Calendar.SUNDAY)); SimpleDateFormat formate1=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss E...原创 2011-11-06 21:29:47 · 119 阅读 · 0 评论 -
List Set Map 区别!
List有序key和value都能重复Set 无序(除treeSet) key和value都不能重复Map无序(除treeMap) key 必须唯一 value 可以重复//允许重复,并且是有序,允许为空 List list = new ArrayList(); list.add(123); list.add(123); list.add(""); for(i...原创 2011-11-07 21:50:18 · 119 阅读 · 0 评论 -
java正则表达式
String regEx="0(1)(2)"; String str="0123456789012345678901234567890123456789"; Pattern p = Pattern.compile(regEx); Matcher matcher = p.matcher(str); while(matcher.find()){...原创 2011-11-09 14:06:10 · 98 阅读 · 0 评论 -
JSON解析
json为字符串 String path = "http://www.secn.com.cn?format=json"; URL url = new URL(path); HttpURLConnection conn = (HttpURLConnection) url.openConnection(); conn.setReadTimeout(5*1000); conn.setRe...原创 2011-12-06 18:01:48 · 85 阅读 · 0 评论 -
java 分页组件
package com.gakes.common.util;public class PageUtils{ private int page; private int pageTotal; private String url; private int pageSize; public PageUtils(int page, int pageSize, int ...原创 2012-06-19 11:10:32 · 138 阅读 · 0 评论 -
JAVA压缩文件和解压缩文件
public static void main(String[] args) throws IOException { try { ZipOutputStream zipOutStream = new ZipOutputStream(new FileOutputStream(new File("E://aa.rar"))); // 创建目录级文件名 ZipE...原创 2012-03-24 09:56:02 · 109 阅读 · 0 评论