- 博客(2)
- 收藏
- 关注
原创 定义一个泛型静态方法,用于输出两个指定集合Collection集合的并、交和差集并验证
import java.util.*; public class TestSetOperation { public static void setOperation(Collection collection1,Collection collection2){ Collection unionSet=new HashSet(); Collection intersectionSet=n
2014-11-12 21:56:19 1134
原创 java求两个字符串最长公共字符串
public class SimilarString { public static String compareS(String str1,String str2){ String str=""; if(str1=="" || str2=="") return ""; if(str1==str2){ str=str1; return str; } for(int i=
2014-11-12 21:43:25 729
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人