Sorry for my expression.
My question is:
1.If I want to print out "3 ", which means notify the
thread(main thread) that is waiting on the object args, how to write code to do it?
2.I know after change into "args.wait(1000);", then at least 1 second later, program will execute line 3 (main thread wake up and coninute its flow), but how can I use "notify()/notifyAll()" to get main thread wake up and coninute its flow?
Ok! Hopefully, it's clear about my asking. Thanks.