java check if thread is complete code example Example: java check if thread is running Thread.isAlive()