摘要: 1、取出一个字符串中字母出现的次数。如:字符串:"abcdekka27qoq",输出格式为:a(2)b(1)k(2)... 1 import java.util.Iterator; 2 import java.util.Map; 3 import java.util.Map.Entry; 4 import java.util.Set; 5 import java.util.TreeMap; 6 7 public class Test1 { 8 public static void main(String[] args){ 9 String str ="abcdek 阅读全文
posted @ 2012-06-28 18:31 Carve_Time 阅读(320) 评论(0) 推荐(0) 编辑
摘要: 构造函数 1 public class FileDemo { 2 public static void main(String[] args){ 3 //构造函数File(String pathname) 4 File f1 =new File("c:\\abc\\1.txt"); 5 //File(String parent,String child) 6 File f2 =new File("c:\\abc","2.txt"); 7 //File(File parent,String child) 8 ... 阅读全文
posted @ 2012-06-28 15:41 Carve_Time 阅读(241) 评论(0) 推荐(0) 编辑