Run code every second by using System.currentTimeMillis()

后端 未结 5 958
滥情空心
滥情空心 2021-02-07 14:52

I am trying to run a line of code every second by using System.currentTimeMillis();.

The code:

     while(true){
           long var = System.currentTim         


        
5条回答
提交回复
热议问题