//TimeWait.classテスト用プログラム public class TestTimeWait{ public static void main(String[] args){ System.out.println("1秒待ち"); TimeWait t=new TimeWait();//インスタンスを生成 t.run();//カッコ内に数字を入れてもよい。 System.out.println("1.5秒待ち"); t.run(1.5);//カッコ内に数字を入れてもよい。 System.out.println("3秒待ち"); t.run(3);//カッコ内に数字を入れてもよい。 } }