多线程交替输出

【多线程交替输出】多线程交替输出A:1 B:1 A:2 B:2 A:3 B:3

package com.chan; public class practise { private static Integer count=1; private static int choice=0; private static int limit=4; public static void main(String[] args){ new Thread(new Runnable() { @Override public void run() { while(count

    推荐阅读