最美情侣中文字幕电影,在线麻豆精品传媒,在线网站高清黄,久久黄色视频

歡迎光臨散文網(wǎng) 會(huì)員登陸 & 注冊

2年大廠經(jīng)驗(yàn),面試還是太緊張,90%的人不會(huì)寫

2023-07-04 20:33 作者:孤獨(dú)的游蕩  | 我要投稿
import java.util.concurrent.atomic.AtomicInteger;

public class Main {

    public static void main(String[] args) {
        AtomicInteger count = new AtomicInteger(1);
        Thread thread1 = new Thread() {
            @Override
            public void run() {
                while (count.get() <= 100) {
                    while (count.get() % 2 == 1 && count.get() <= 100) {
                        System.out.println(count.get()+"a");
                        count.incrementAndGet();
                    }
                }
            }
        };
        Thread thread2 = new Thread() {
            @Override
            public void run() {
                while (count.get() <= 100) {
                    while (count.get() % 2 == 0 && count.get() <= 100) {
                        System.out.println(count.get()+"b");
                        count.incrementAndGet();
                    }
                }
            }
        };
        thread1.start();
        thread2.start();
    }
}

海哥,看看這個(gè)怎么樣

2年大廠經(jīng)驗(yàn),面試還是太緊張,90%的人不會(huì)寫的評論 (共 條)

分享到微博請遵守國家法律
永寿县| 黔江区| 遵义市| 万荣县| 奇台县| 聊城市| 大洼县| 阜城县| 呼玛县| 仁布县| 鄂温| 丽水市| 富源县| 西贡区| 通海县| 沅陵县| 青田县| 古丈县| 博爱县| 开江县| 太仆寺旗| 禄丰县| 恩施市| 佛学| 西昌市| 剑河县| 德令哈市| 钟祥市| 东方市| 股票| 潮州市| 西安市| 凤阳县| 孟州市| 扎鲁特旗| 平罗县| 长岛县| 栖霞市| 织金县| 西藏| 元氏县|