16

I did not understand the explanation at oracle, what is this piece of code actually doing?

final int maximumDelay = (int) TimeUnit.SECONDS.toMillis(1000);
4

1 回答 1

36

它将 1000 秒转换为毫秒,然后将结果从 截断longint

于 2013-04-30T20:52:54.450 回答