diff --git a/Java多线程基础.txt b/Java多线程基础.txt new file mode 100644 index 0000000..fb9f0e1 --- /dev/null +++ b/Java多线程基础.txt @@ -0,0 +1,25 @@ +package step1; + +//请在此添加实现代码 +/********** Begin **********/ +public class ThreadClassOne extends Thread { + public void run(){ + for(int i=1;i<10;i+=2){ + System.out.print(i+" "); + } + } +} +class ThreadClassTwo implements Runnable{ + public void run(){ + for(int i=0;i<=10;i+=2){ + System.out.print(i+" "); + } + } + public void start(){ + + } +} + + +/********** End **********/ +