@@ -0,0 +1,807 @@
+package com.njust.test.learn;%0A%0A/**%0A * interrupt%E5%8F%AF%E4%BB%A5%E6%89%93%E6%96%ADwait%E7%8A%B6%E6%80%81%0A * -------------%0A * %3Cpre%3E%0A *  main trigger interrupt%0A * interrupt here!!!%0A *  %3C/pre%3E%0A */%0Apublic class WaitNotifyDemo333%0A%7B%0A    %0A    public static void main(String%5B%5D args)%0A    %7B%0A        %0A        Object lock = new Object();%0A        Thread thread = new Thread(() -%3E %7B%0A            synchronized (lock)%0A            %7B%0A                try%0A                %7B%0A                    lock.wait();%0A                    System.out.println(%22wait end%22);%0A                %7D%0A                catch (InterruptedException e)%0A                %7B%0A                    System.out.println(%22interrupt here!!!%22);%0A                %7D%0A            %7D%0A        %7D);%0A        thread.start();%0A        %0A        thread.interrupt();%0A        System.out.println(%22main trigger interrupt%22);%0A    %7D%0A    %0A%7D%0A

Create WaitNotifyDemo333.java