Код: Выделить всё
Executors.newSingleThreadExecutor().submit(job);
< /code>
, чем < /p>
job.run();
Подробнее здесь: https://stackoverflow.com/questions/190 ... adexecutor
Код: Выделить всё
Executors.newSingleThreadExecutor().submit(job);
< /code>
, чем < /p>
job.run();