Comments (3)
注释有把逻辑写清楚呀,一个是如果原来有就修改原来的;if (userList.size() >= 20) {后就是如果原来没有,就添加
from ssm.
我的意思是说,当userFind != null
的时候,
两个if (userFind != null)
,在第一个里边return了,所以第二个if (userFind != null)
就永远不会执行,这个代码就没有意义了。
就是System.out.println("排行榜小于20人就直接丢进缓存 :");
下面那句if
不会执行
from ssm.
呃,抱歉,我的错。第二个的if (userFind != null)是没有意义的,马上修正。感谢提醒。
from ssm.
Related Issues (7)
- 这一块少了什么东西吧? HOT 1
- 编码问题 HOT 2
- 为什么访问不到视图 HOT 4
- 您好,请问下,jedis客户端单机版配置 这个配置的是redis吗? HOT 2
- 配置问题
- ssm
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ssm.