摘要: class Test{ public static void main(String[] args) { String str = "dasdalldsdslldsdszxll"; System.out.println("count="+get(str,"ll"));//打印ll出现的... 阅读全文
posted @ 2015-10-20 17:53 超宇 阅读(268) 评论(0) 推荐(0) 编辑
摘要: ArrayList List = new ArrayList(); 报错Syntax error on token "int", Dimensions expected after this token 原因:引用类型和原始类型没有搞清楚! Java提供两种不同的类型:引用类型和原始类型(... 阅读全文
posted @ 2015-10-20 10:26 超宇 阅读(670) 评论(0) 推荐(0) 编辑
摘要: 利用了Set不重复的特性 方法一: public static List removeDuplicateWithOrder(List list) { Set set = new HashSet(); List newList = new ArrayList(); ... 阅读全文
posted @ 2015-10-20 10:03 超宇 阅读(2488) 评论(0) 推荐(0) 编辑