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