Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Main
- {
- public static void main(String[] args) throws Throwable
- {
- int[] array = {1, 2, 3};
- Thread thread = null;
- for (int i = 0; i < array.length; i++)
- {
- if (i == array.length)
- {
- thread = Thread.currentThread();
- }
- }
- thread.sleep(1000L);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement