Code Monkey home page Code Monkey logo

Comments (3)

FuZhucheng avatar FuZhucheng commented on August 17, 2024

注释有把逻辑写清楚呀,一个是如果原来有就修改原来的;if (userList.size() >= 20) {后就是如果原来没有,就添加

from ssm.

huangzhike avatar huangzhike commented on August 17, 2024

我的意思是说,当userFind != null 的时候,
两个if (userFind != null) ,在第一个里边return了,所以第二个if (userFind != null) 就永远不会执行,这个代码就没有意义了。
就是System.out.println("排行榜小于20人就直接丢进缓存 :");下面那句if不会执行

from ssm.

FuZhucheng avatar FuZhucheng commented on August 17, 2024

呃,抱歉,我的错。第二个的if (userFind != null)是没有意义的,马上修正。感谢提醒。

from ssm.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.