- 博客(4)
- 问答 (3)
- 收藏
- 关注
原创 列出某个目录下的所有文件和列出某目录下所有的子目录
<br /> File f = new File("D://My Documents");<br /> File[] files = f.listFiles();<br /> for (int i = 0; i < files.length; i++) {<br /> if (files[i].isDirectory()) {<br /> System.out.println("directory
2011-04-19 20:23:00
816
原创 打印昨天当前时刻
package test; import java.util.Calendar; public class Child extends Father { public Child() { System.out.println("child......"); } public static void main(String[] args) { Calendar cal=Calendar.getInstance(); cal.add
2011-04-19 14:23:00
389
原创 编写一个截取字符串的方法,输入字符串和字节数,输出按字节数截取字符串。如“我008”,3。应该输出我0
package test; import java.util.Scanner; public class Child { public Child() { System.out.println("child......"); } public static void main(String[] args) { String str = ""; int num = 0; str=new Scanner(
2011-04-19 14:18:00
448
原创 给出一个字符串和长度,给字符串进行分隔
package text; import java.util.Scanner; public class Test { public static void main(String[] args) { int length = 0; String s = ""; length = new Scanner(System.in).nextInt(); String[] s1 = split(s, length);
2011-04-19 01:18:00
272
空空如也
oracle insert into select case when...
2011-09-05
循环一个list如果两次得到的结果一样,则count++
2011-08-31
TA创建的收藏夹 TA关注的收藏夹
TA关注的人