摘要:
传统处理Null方式 深层质疑 每次不确定一个变量是否为null时,添加一个进一步嵌套的if块,增加了代码缩进的层数。 public String getCarInsuranceName(Person person) { if (person != null) { Car car = person. 阅读全文
摘要:
问题: Could not find resource com/xxx/xxx/StudentMapper.xml 原因: 没有导出xml文件,pom.xml文件配置有问题。也因为我的resource有多级的子目录,导致resource根目录的导出了,但是子目录下的都没有,其实就是没有匹配到子文件里 阅读全文
摘要:
题目 The Hamming distance between two integers is the number of positions at which the corresponding bits are different. Given two integers x and y, cal 阅读全文