Dave Tolls wrote:Ah.
I did test it, but it's IntelliJ being too clever by half.
It's own launcher allows it to happen.
Now it is.
Andy Frels wrote:When importing you import classes and Java.io is not a class.
ras oscar wrote:java.lang.Object
I know from process of elimination that the correct import statement is
What do the 3 lines above that refer to? If I instead entered
would I get the desired class?
Kelly Lykins wrote:I'm pretty sure isn't a real thing. You gotta specify what you are trying to import.
saurabhmehta mehta wrote:I guess since the other thread has not yet released the lock due to sleep() method.
saurabhmehta mehta wrote:So is the notify() call being made only after the entire loop is over?
Paul Clapham wrote:Since you're doing the same thing in both catch blocks you can simplify that some more: