Counter in java using timer scheduleAtFixedRate

后端 未结 0 1791
忘掉有多难
忘掉有多难 2021-01-20 05:12

I use the code below to increase a counter every 1 second, but if the application is running a long time, the counter is going to infinite. What can I do?

tim         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题