这个程序的运行结果是:
1
2
A
Exception in thread "Thread-0" java.lang.IllegalMonitorStateException
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:503)
at day20.ThreadNum.run(PrinNumChar.java:23)
Exception in thread "Thread-1" java.lang.IllegalMonitorStateException
at java.lang.Object.notify(Native Method)
at day20.ThreadChar.run(PrinNumChar.java:37)