【发布时间】:2013-01-10 21:33:56
【问题描述】:
我不明白为什么以下逻辑不起作用:
if (cursorCount > 1 && (!"x".equals(componentType) || !"y".equals(componentType))){
message.append("s");
}
所以我想在光标计数超过 1 时打印 's' 但仅在 componentType 不等于 x 或 y 时才打印 's'..
有趣的是,似乎适用于 y 而不是 x 的情况。
Confused.com! :)
【问题讨论】: