Java display current time

前端 未结 6 1902
一向
一向 2021-01-02 02:05

I have a code which shows me the current date and time when I run my application

DateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");
Calen         


        
6条回答
  •  借酒劲吻你
    2021-01-02 02:56

    Add a loop with an increment statement, so the clock will keep ticking until given condition.

提交回复
热议问题