java - equalsIgnoreCase方法的使用
巴扎黑
巴扎黑 2017-04-18 10:04:57
0
3
876

明白了, 刚晕了 哈哈
谢谢大家, 这个就是一个忽略大小写判断是否相等而已.
证明休息还是很重要的 哈哈

巴扎黑
巴扎黑

reply all(3)
迷茫

First of all, this code does not need to use equalsIgnoreCase,用equals.

Secondly, doeYear, doeMonth, doeDay可能在业务上定义了-1为非法值,所以这里要对这3个值进行校验(检查是否为空或者等于-1).

PHPzhong

Regardless of the context, just looking at the code is just to judge whether -1doeDay is equal. You were confused when you saw that case is ignored.

伊谢尔伦

What the hell are doeMonth, doeDay, and doeYear? The context of the code must be posted. Who knows what you want to express? Ask questions professionally

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template