摘要: Java中有两种方法创建线程: 一、继承Thread类创建线程类,重写父类中的run( )方法 1 public class threadA extends Thread { 2 3 public String s; 4 5 //构造方法 6 7 public threadA(String s){ 阅读全文
posted @ 2018-05-03 21:26 CiaoBello 阅读(113) 评论(0) 推荐(0) 编辑