Discuss / Java / 题目看半天才理解

题目看半天才理解

Topic source

🌙

#1 Created at ... [Delete] [Delete and Lock User]

if (score == null) {
// TODO:
Integer inList = this.findInList(name);
if (inList != null) {
this.cache.put(name, inList);
return inList;
}
}

🌙

#2 Created at ... [Delete] [Delete and Lock User]

感觉 大家 都少了 return inList;

这个return  反正 我的少了 结果就不对

Joker.fu_95

#3 Created at ... [Delete] [Delete and Lock User]

那你认为后面的return三元运算符有何意义,不直接socre.intValue()得了


  • 1

Reply