1、实现方式一:继承Thread类,重写run方法
1 2 3 4 | class Demo{ public static void main(String [] args){ SAThread thread1 = new SAThread(); SAThread thread2 = new SAThrea[......]<p class="read-more"><a href="https://www.yusian.com/blog/java/2017/03/17/140012953.html">继续阅读</a></p> |