/** * 两个线程,一个打印奇数,一个打印偶数,连续输出1-100 * Created by vendetta on 2018/8/31. */publicclassOddAndEven{//state==1表示线程1开始打印,state==2表示线程2开始打印privatestaticintstate=1;privatestaticintodd=1;privatestaticinteven=0;publicstaticvoidmain(String[]args){OddAndEvenoddAn...