![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
多线程
IT自学之路
这个作者很懒,什么都没留下…
展开
-
java-多线程之静态代理模式
接口 package pojo; public interface marry { void marry(); } Marry类 package pojo; public class Mary implements marry{ public void marry(){ System.out.println("我要结婚了"); } } Weddingcompany类 package pojo; public class Weddingcompan原创 2022-04-14 20:22:57 · 90 阅读 · 0 评论 -
java-多线程之龟兔赛跑
package pojo; //包名 public class Race implements java.lang.Runnable { private static String win; @Override public void run() { for (int i = 0; i <= 100; i++) { if (Thread.currentThread().getName().equals("兔子").原创 2022-04-14 20:16:52 · 236 阅读 · 0 评论