/**
* 文字列の比較
* @param str1 文字列
* @param str2 文字列
* @return true:相等 false:比相等
*/
public static boolean equalStr(String str1, String str2) {
if (str1 == null) {
if (str2 == null) {
return true;
} else
return false;
} else
return str1.equals(str2);
}
文字列の比較
最新推荐文章于 2019-05-01 15:01:10 发布