![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java
文章平均质量分 60
xxhxuexi
这个作者很懒,什么都没留下…
展开
-
map 集合迭代
Map test = new HashMap(); test.put(1, "aaa"); test.put(2, "bbb"); test.put(3, "ccc"); test.put(4, "ddd"); Iterator it =test.entrySet().iterator(); while(it.hasNext()){ Map.Entry hell...原创 2013-04-12 15:58:45 · 57 阅读 · 0 评论 -
获取img标签 中的src属性值
public static List getSrcList(String text){ Pattern p = Pattern.compile("]*)src\\s*=\\s*([^>]+)", Pattern.CASE_INSENSITIVE | Pattern.MULTILINE); Matcher matcher = p.matcher(text); ...原创 2013-05-23 00:05:49 · 1519 阅读 · 0 评论 -
java 中常见的异常
ArithmeticException - 算术运算中,被0除或模除 ArrayIndexOutOfBoundsException - 数组越界访问 ArrayStoreException - 数据存储异常,写数组操作时,对象或数据类型不兼容 ClassCastException - 类型转换异常 IllegalArgumentException - 方法的参数无效 IllegalThreadS...原创 2013-05-26 10:31:38 · 71 阅读 · 0 评论 -
apache-poi 操作excel
参照 :http://poi.apache.org/spreadsheet/quick-guide.html package com.xiexh.test; import java.io.File;import java.io.FileNotFoundException;import java.io.FileOutputStream;import java.io.IOExcept...原创 2013-05-26 16:12:31 · 136 阅读 · 0 评论 -
swt desiner安装
本文全部是借鉴:http://blog.csdn.net/ei__nino/article/details/7647889 First ------首先下载swt-3.7.2-win32-win32-x86 进入 http://www.eclipse.org/swt/ 下载 进入页面后 有一个小段的标题为Releases可以通过点击下面的相关超链接 找到相关文件 进行下载 放...原创 2013-11-11 11:05:07 · 110 阅读 · 0 评论 -
jdk 和 idea linux环境下安装
引用别人的方法: jdk安装: http://blog.chinaunix.net/uid-26404477-id-3471246.html intellij idea安装: http://blog.csdn.net/j123kaishichufa/article/details/14176857(里面内容 exportPath 这个地方要分开 export PATH ...原创 2014-12-27 17:00:53 · 104 阅读 · 0 评论 -
enum
枚举类型的特征: 1、枚举类也是一种特殊形式的java类 2、枚举中的每一个枚举值代表枚举类的一个实例对象 3、与java中的普通类一样,在声明枚举类时,也可以声明属性,方法和构造方法 ...原创 2013-09-03 21:23:37 · 68 阅读 · 0 评论 -
常见异常
java.util.ConcurrentModificationException 在Iterater迭代过程中不允许删除元素原创 2013-10-21 17:13:57 · 61 阅读 · 0 评论 -
.svn文件删除2
.svn文件删除 [code="java"] package com.aixin.control; import java.io.File; public class DeleteSvnFile { public static void deleteDirectory(String dest) { File f = new File(de...原创 2014-04-18 13:37:38 · 69 阅读 · 0 评论