我品化的国界、进在的,只美“整染的门电不一。请西1分钟内完成这个工具类的方法的编写 t cM;ALSEi现不 publif miatun et boolean isqumls(7l) src, 7l) dst) ( 生、不允许直接用工具类的方法完成,只能用JK最基础的类和方社
时间: 2024-05-25 16:19:33 浏览: 6
public class MyStringUtil {
public static boolean isEquals(String src, String dst) {
if (src == null || dst == null) {
return false;
}
if (src.length() != dst.length()) {
return false;
}
for (int i = 0; i < src.length(); i++) {
if (src.charAt(i) != dst.charAt(i)) {
return false;
}
}
return true;
}
}
相关推荐
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![7z](https://img-home.csdnimg.cn/images/20210720083312.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)