我打电话时遇到问题Thread.CurrentThread.sleep(0.5*1000)
当我这样做时:
import java.lang.Thread.*;
Thread.currentThread().sleep(0.3*1000)
// or Thread.currentThread().sleep(0.3*1000.toLong())
我收到以下错误:
No signature of method: java.lang.Thread.sleep() is applicable for argument types: (java.math.BigDecimal) values: [300.0]
Possible solutions: sleep(long), sleep(long), sleep(long, int), sleep(long, groovy.lang.Closure), stop(), grep()
你会推荐什么 ?