문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 | ||
java:7 [2011/09/14 22:32] kwon37xi |
java:7 [2018/10/17 17:46] (현재) kwon37xi [ThreadLocalRandom] |
||
---|---|---|---|
줄 171: | 줄 171: | ||
} | } | ||
- | public static void main(String[] args) throws | + | public static void main(String[] args) throws Throwable { |
Lookup lookup = MethodHandles.lookup(); | Lookup lookup = MethodHandles.lookup(); | ||
줄 185: | 줄 185: | ||
</ | </ | ||
+ | ===== ThreadLocalRandom ===== | ||
+ | * [[https:// | ||
+ | * 쓰레드별로 Random 객체를 따로 생성하는 [[https:// | ||
+ | <code java> | ||
+ | // 대부분 아래와 같은 형태로 사용하면 된다. | ||
+ | ThreadLocalRandom.current().nextX(...) | ||
+ | </ | ||
+ | * [[http:// | ||
===== 기타 ===== | ===== 기타 ===== | ||
* 모든 Reflection 관련 예외들은 [[http:// | * 모든 Reflection 관련 예외들은 [[http:// | ||
* [[http:// | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
===== 참조 ===== | ===== 참조 ===== | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// |