![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Java
iteye_5788
这个作者很懒,什么都没留下…
展开
-
内部类全路径
内部类全路径: org.example.test.A$B 而不是 org.example.test.A.B 试着打印下 B.class 吧[code="java"]import org.example.testpublic class A{ public class B{}}[/code]原创 2012-06-14 21:23:27 · 781 阅读 · 0 评论 -
正则表达式
[code="java"]public static boolean validateEmail(String address){ String pattern = "^([a-z0-9A-Z]+[-|\\.]?)+[a-z0-9A-Z]@([a-z0-9A-Z]+(-[a-z0-9A-Z]+)?\\.)+[a-zA-Z]{2,}$"; return Pattern.compi...原创 2012-06-14 21:23:59 · 53 阅读 · 0 评论 -
递归列出所有子目录和文件
[code="java"]import java.io.File;public class Test { public static void main(String args[]){ try { listFile("E:",0); } catch (Exception e) { e.printSta...原创 2012-06-15 10:12:55 · 537 阅读 · 0 评论 -
冒泡排序,快速排序
[code="java"]public class TestSort { public static void main(String[] args) { int nums[] = { 7, 5, 3, 8, 4, 6, 1, 2 }; // bubbleSort(nums); quickSort(nums, 0, nums.le...原创 2016-03-09 11:16:06 · 76 阅读 · 0 评论