マルチスレッドのプログラムはまともに書いたことが無く、迷ったのが実行し続けるスレッドの終了方法。 LoopThreadTest.java(最初の実装) public class LoopThreadTest{ public static void main(String[] args){ System.out.println("LoopThreadTest: start"); LoopThread thread = new LoopThread(); thread.setDaemon(true); //start LoopThread thread.start(); try{ Thread.sleep(4000); }catch(InterruptedException e){ //nop } //term LoopThread thread.notifyStop(); thread.in