What I want to do is for the main to read the user input value 'after' the user has actully input it. But when I do T.start(), it starts the thread and then immediately reads the value before user inputs it.
I want some way to wait till the user inputs it. So I did join() in main method, and I wait() in run() method and finally when the user is finished input it notify() so the main method will the value 'after' the user has input it.
But this doesn;t seem to work. I even tried 'this' instead of 'T' but with no luck.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com